Exploring the Linux locate command
By Alvin Alexander. Last updated: June 3 2016
The Linux locate
command lets you easily find files in the filesystem. It works by maintaining a system-wide database of "all files which are publicly accessible". The database itself is updated periodically by a background process. Because of this approach it returns results much faster than the find
command, which only looks for files when you tell it to. Depending on your system, the locate
command may need to be configured initially, or it may be pre-configured to work out of the box.