How ToLinux

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.

which:

[[email protected] ~]# which plesk
/sbin/plesk
[[email protected] ~]#

whereis:

[[email protected] ~]# whereis plesk
plesk: /sbin/plesk /usr/share/man/man1/plesk.1.gz
[[email protected] ~]#

 

Jon Procter

Linux, Unix, and Windows server sysadmin with strong experience in security and compliance.

Related Articles

Back to top button