Manpages LOCATESection: Misc. Reference Manual Pages (1L " -*- nroff -*-)Index Return to Main Contents NAMElocate - list files in databases that match a patternSYNOPSISlocate [-d path | --database=path] [-e | --existing] [-i | --ignore-case ] [--version] [--help] pattern...DESCRIPTIONThis manual page documents the GNU version of locate. For each given pattern, locate searches one or more databases of file names and displays the file names that contain the pattern. Patterns can contain shell-style metacharacters: `*', `?', and `[]'. The metacharacters do not treat `/' or `.' specially. Therefore, a pattern `foo*bar' can match a file name that contains `foo3/bar', and a pattern `*duck*' can match a file name that contains `lake/.ducky'. Patterns that contain metacharacters should be quoted to protect them from expansion by the shell. If a pattern is a plain string - it contains no metacharacters - locate displays all file names in the database that contain that string anywhere. If a pattern does contain metacharacters, locate only displays file names that match the pattern exactly. As a result, patterns that contain metacharacters should usually begin with a `*', and will most often end with one as well. The exceptions are patterns that are intended to explicitly match the beginning or end of a file name. The file name databases contain lists of files that were on the system when the databases were last updated. The system administrator can choose the file name of the default database, the frequency with which the databases are updated, and the directories for which they contain entries; see updatedb(1L).OPTIONS
ENVIRONMENT
SEE ALSOfind(1L), locatedb(5L), updatedb(1L), xargs(1L) Finding Files (on-line in Info, or printed)
IndexThis document was created by man2html, using the manual pages. Time: 21:04:28 GMT, January 20, 2025 |