Loading AI tools
From Wikipedia, the free encyclopedia
locate
is a Unix utility which serves to find files on filesystems. It searches through a prebuilt database of files generated by the updatedb
command or by a daemon and compressed using incremental encoding. It operates significantly faster than find
, but requires regular updating of the database. This sacrifices overall efficiency (because of the regular interrogation of filesystems even when no user needs information) and absolute accuracy (since the database does not update in real time) for significant speed improvements, particularly on very large filesystems.
Initial release | 1982 |
---|---|
Operating system | Unix and Unix-like |
Type | Command |
locate
was first created in 1982.[1] The BSD and GNU Findutils versions derive from the original implementation.[2] Their primary database is world-readable, so the index is built as an unprivileged user. locate
command is also included in MacOS.
mlocate
(Merging Locate) and the earlier slocate
(Secure Locate) use a restricted-access database, only showing filenames accessible to the user.[3][4]
plocate
uses posting lists. Like mlocate
and slocate
, it only shows files if find
would list it.[5] Compared to mlocate
, it is much faster, and its index is smaller.[6][7]
Seamless Wikipedia browsing. On steroids.
Every time you click a link to Wikipedia, Wiktionary or Wikiquote in your browser's search results, it will show the modern Wikiwand interface.
Wikiwand extension is a five stars, simple, with minimum permission required to keep your browsing private, safe and transparent.