*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  FreeBSD Tips              
To search for files that match a particular name, use find(1); for example

	find / -name "*GENERIC*" -ls

will search '/', and all subdirectories, for files with 'GENERIC' in the name.
      	--  Stephen Hilton 
Steven Brown 2005-08-03 01:36:06
FreeBSD systems automatically run locate.updatedb by default, so using "locate SUBSTRING" can be much, much faster than "find." The disadvantage of this, though, is that it can reveal filenames otherwise only visible to the user who last ran updatedb (usually root).
Mihai Secasiu 2005-09-21 16:54:41
If you want you can exclude some directories from locate database by running "updatedb -e dirs" instead of just "updatedb"
Add Comment
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service