Linux.com

Do not forget Locate or (r)grep

Posted by: Anonymous Coward on July 25, 2005 06:53 PM
Not all distributions include locate by default. But it is really usefull.

Example: locate *HOWTO*

Finds all files that cointain the word HOWTO.

And grep & rgrep can be usefull too. Lets say that you are looking for al the files that opens a Mysql connection in your source code. Lets type

rgrep mysql_connect . ( assuming that al the source is in the directory . or subdirectories...)
I will look _inside_ the files. It's absolutely a time saver command.

#

Return to CLI Magic: Information, please