Dave's Brain

Browse - Computer Tips - What are the Linux file searching commands?

Date: 2007nov22
OS: Linux
Level: Beginner
Keywords: search

Q.  What are 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

Add a comment

Sign in to add a comment
Copyright © 2008-2017, dave - Code samples on Dave's Brain is licensed under the Creative Commons Attribution 2.5 License. However other material, including English text has all rights reserved.