whereis - locate the binary, source, and manual page files for a command
The binary file whereis is installed in /usr/bin/whereis directory.
$ ls -l /usr/bin/whereis
-rwxr-xr-x 1 root root 31576 Sep 15 17:08 /usr/bin/whereis
To find the location of another binary or Linux command, you pass the command as argument to the /usr/bin/whereis command and it will display the locaation of that command as shown in the examples below:
$ /usr/bin/whereis which
which: /usr/bin/which /usr/man/man1/which.1
$ whereis wget
wget: /usr/bin/wget /usr/man/man1/wget.1
In Solaris UNIX platform the where is installed in /usr/ucb/whereis so here is a few examples in Solaris SunOS X86 VM
$ /usr/ucb/whereis zfs
zfs: /etc/zfs /sbin/zfs /usr/lib/zfs /usr/sbin/zfs /usr/man/man1m/zfs.1m
$ /usr/ucb/whereis whereis
whereis: /usr/ucb/whereis /usr/man/man1b/whereis.1b
$ /usr/ucb/whereis prtconf
prtconf: /etc/prtconf /usr/sbin/prtconf /usr/man/man1m/prtconf.1m
$ /usr/ucb/whereis prtvtoc
prtvtoc: /etc/prtvtoc /usr/sbin/prtvtoc /usr/man/man1m/prtvtoc.1m
Please click on " whereis in PDF " format.
Please click on " whereis in HTML " format.