Saturday, July 14, 2012

locate: Linux command to find files and directories


locate [optionspattern
Search database(s) of filenames and print matches. Matches include all files that contain pattern unless patternincludes metacharacters, in which case locate requires an exact match. *, ?, [, and ] are treated specially; / and . are not. Searches are conducted against a database of system contents that is updated periodically. To update the database, use the updatedb command.


-d path--database=path
Search databases in pathpath must be a colon-separated list.
Print a help message and then exit.
Print version information and then exit.