• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

locate

locate

locate Finds files.
locate <pattern>
								

 
Searches a database for all pathnames that match <pattern>. The database is rebuilt periodically and contains the names of all publicly accessible files.
Shell and globbing characters (*, ?, \, [, and ]) may be used in <pattern>, although they have to be escaped. Preceding a character by \ eliminates any special meaning for it. No characters must be explicitly matched, including /.
As a special case, a pattern with no globbing characters (foo) is matched as (*foo*).
Useful files:  
/var/db/locate.database Database
/usr/libexec/locate.updatedb Script to update database



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint