O'Reilly logo

Linux and Unix Shell Programming by David Tansley

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

whereis

Format:

whereis command_name 

Use the whereis command to locate the binary and manual page locations of a command.

					$ whereis fuser 
fuser: /usr/sbin/fuser /usr/man/man1/fuser.1 

$ whereis sort 
sort: /bin/sort /usr/man/man1/sort.1
				

Notice the binary is not displayed in the next two examples, because it is a shell built-in, but we have manual pages for the commands.

					$ whereis times 
times: /usr/man/man2/times.2 

$ whereis set 
set: /usr/man/mann/set.n
				

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required