whereis - locate the binary, source, and manual page files for a command
The binary file whereis is installed in /usr/ucb directory.
-rwxr-xr-x 1 root bin 14512 Apr 17 09:54 /usr/ucb/whereis
To find the location of another binary or UNIX command, you pass the command as argument to the /usr/ucb/whereis command and it will display the locaation of that command as shown in the examples below:
which: /usr/bin/which /usr/man/man1/which.1
prtdiag: /usr/sbin/prtdiag /usr/man/man1m/prtdiag.1m
wget: /usr/bin/wget /usr/man/man1/wget.1
zfs: /etc/zfs /sbin/zfs /usr/lib/zfs /usr/sbin/zfs /usr/man/man1m/zfs.1m
whereis: /usr/ucb/whereis /usr/man/man1b/whereis.1b
prtconf: /etc/prtconf /usr/sbin/prtconf /usr/man/man1m/prtconf.1m
prtvtoc: /etc/prtvtoc /usr/sbin/prtvtoc /usr/man/man1m/prtvtoc.1m
Please click on " man whereis " to see the Manual Page for this command.