whereis [options] [-BMS <dir>... -f] <name>

Locate the binary, source, and manual-page files for a command.

-b search only for binaries
-B <dirs> define binaries lookup path
-m search only for manuals and infos
-M <dirs> define man and info lookup path
-s search only for sources
-S <dirs> define sources lookup path
-f terminate <dirs> argument list
-u search for unusual entries
-l output effective lookup paths
For more details see whereis(1).