LOCATE(1) BSD General Commands Manual LOCATE(1)
locate -- find filenames quickly
locate [-0Scims] [-l limit] [-d database] pattern ...
The locate program searches a database for all pathnames which match the specified pattern. The database is recomputed periodically (usually
weekly or daily), and contains the pathnames of all files which are publicly accessible.
Shell globbing and quoting characters (``*'', ``?'', ``'', ``['' and ``]'') may be used in pattern, although they will have to be escaped
from the shell. Preceding any character with a backslash (``'') eliminates any special meaning which it may have. The matching differs in
that no characters must be matched explicitly, including slashes (``/'').
As a special case, a pattern containing no globbing characters (``foo'') is matched as though it were ``*foo*''.
Historically, locate only stored characters between 32 and 127. The current implementation store any character except newline ('
') and NUL