Computer Tips - Linux: The Linux file searching commands

Date: 2007nov22 OS: Linux Level: Beginner Keywords: search Q. Linux: The Linux file searching commands A. You can use:
grep
find
locate
Google Desktop http://desktop.google.com
Nautilus
Beagle
See man pages for more info. grep, find and Nautilus don't require an index built beforehand. locate can only search by file name but its fast. Google Desktop, Nautilus and Beagle have graphical interfaces. Some examples:
cd ~ grep -Ri tax * search all your files for "tax"
find ~ -type f -exec grep -i tax {} \; -print search all your files for "tax"
locate tax find all files that have "tax" in the name