Where Online Learning is simpler!



$ whatis whereis

whereis - locate the binary, source, and manual page files for a command

Examples:

The binary file whereis is installed in /usr/ucb directory.

$ ls -l /usr/ucb/whereis

-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:

$ /usr/ucb/whereis which

which: /usr/bin/which /usr/man/man1/which.1

$ /usr/ucb/whereis prtdiag

prtdiag: /usr/sbin/prtdiag /usr/man/man1m/prtdiag.1m

$ /usr/ucb/whereis wget

wget: /usr/bin/wget /usr/man/man1/wget.1

$ /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 " man whereis " to see the Manual Page for this command.


Previous Home Page Next



Contact us     |      About us     |      Term of use      |      Copyright © 2000-2025 MyWebUniversity.com ™