Adsense code (2021-10-05)

Saturday, July 14, 2012

locate: Linux command to find files and directories


locate

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.

Options

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