Dave's Brain

Browse - computer tips - linux search

Date: 2007nov22
OS: Linux
Level: Beginner

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, dave - Code on Dave's Brain is licensed under the Creative Commons Attribution 2.5 License.