Linux.com

locate is your friend

Posted by: Anonymous Coward on June 29, 2005 01:28 AM
I like to use locate and grep together so that I can
find that elusive program that I can't quite remember that actual name of.
For example, if I am looking for a program that had "conf" in it I would type:

locate conf | grep bin/

That would show me all of the files that have "conf" in their names that are in the<nobr> <wbr></nobr>/bin<nobr> <wbr></nobr>/sbin<nobr> <wbr></nobr>/usr/bin<nobr> <wbr></nobr>/usr/sbin and<nobr> <wbr></nobr>/usr/X11R6/bin directories.

Debian based users should try it with "apt" and it
will show apt-cache; another nice program to become familiar with.

Cheers

#

Return to CLI Magic: locate, slocate, and rlocate