Files
locate
Find files using a filename database.
filesdirectoriespath
Additional Notes
locate is a file command used to find files using a filename database. It is much faster than find for filename searches because it queries a pre-built database instead of scanning the filesystem.
The locate database is typically updated daily by a cron job or systemd timer. Run updatedb manually (as root) to refresh the index immediately after adding new files.
Syntax
locate [options] [arguments]
Parameters
options: Flags that change howlocatebehaves.path: File or directory path to inspect or change.arguments: Names, patterns, or values used by the command.
Common Options
--help: Show command help when supported.--version: Show version information when supported.
Examples
locate --help
man locate
Practical Notes
Options can vary by distribution and package version. Use man locate, locate --help, or the package documentation for exact syntax.