How Tolinuxupdate

How to find the location of a command in Linux

You can find where the command lives with either the whereis or which commands. The whereis command gives you the location of the command as well as the manual page, whereas which just gives you the location of the command.


[root@hostname ~]# which plesk
[root@hostname ~]#


[root@hostname ~]# whereis plesk
plesk: /sbin/plesk /usr/share/man/man1/plesk.1.gz
[root@hostname ~]#


Jonathan Procter

Linux, Unix, and Windows server sysadmin.

Related Articles

Back to top button