locate

por | 12 diciembre, 2007

 

locate [options] pattern

Search database(s) of filenames and print matches. Matches include all files that contain pattern unless pattern includes 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.

Options

-d path, –database=path

Search databases in path. path must be a colon-separated list.

-h, –help

Print a help message and then exit.

–version

Print version information and then exit.