Whereis

From TWUUG

The whereis command is similar to which, but is searches for the aplpication, manual files and source files. The syntax for whereis is "whereis {program name}”. As an example lets say you are looking for sendmail, it will return many results as shown below.

user@linux:/$ whereis sendmail
sendmail: /usr/bin/sendmail /usr/sbin/sendmail /usr/lib/sendmail /usr/X11R6/bin/sendmail /usr/bin/X11/sendmail
/usr/X11/bin/sendmail /usr/share/sendmail /usr/man/man8/sendmail.8.gz
/usr/share/man/man8/sendmail.8.gz /usr/X11/man/man8/sendmail.8.gz

As you can see it returned the executables files in the bin directories, the manual files in the man directories and the library files in the lib directories.

Personal tools