Code:
$ whereis whereis
whereis: /usr/bin/whereis /usr/X11R6/bin/whereis /usr/bin/X11/whereis /usr/share/man/man1/whereis.1.gz
whereis only looks in the standard locations for binary and manual files. It won't find anything else. Locate (slocate) keeps a catalogue of every file in your system ...
Code:
$ whereis kiaora
kiaora:
$ locate kiaora
/home/simon/projects/isos/kiaora-008.iso
The "apropos" command searches manual page descriptions for a search term. So it won't find things that do not have a man page.
Code:
$ apropos kiaora
kiaora: nothing appropriate.
$ apropos whereis
whereis (1) - locate the binary, source, and manual page files for a command
$ apropos apropos
apropos (1) - search the manual page names and descriptions
$ apropos locate | grep GNU
locate (1) - Security Enhanced version of the GNU Locate
slocate (1) - Security Enhanced version of the GNU Locate
$ apropos find | grep files
find (1) - search for files in a directory hierarchy
findfs (8) - Find a filesystem by label or UUID
texfind (1) - graphical tool to search for text in TeX input files
To find out what things do - type "info <command>" or "man <command>".
slocate is probably the most likely to find things - but it will find alot of things (eg:
locate mozilla produces 1211 lines of output!) so it gets used with "grep" a lot.