Mlocate.db (5): Mlocate database-linux man page https://linux.die.net/man/5/mlocate.db
Name
Mlocate.db-a mlocate Database
Description
A mlocate database starts with a file Header:8 bytes for a magic number ("\0mlocate" like a C literal), 4 bytes For the configuration block size in big endian, 1 bytes for file format version (0), 1 byte for the ' requ IRE visibility ' flag (0 or 1), 2 bytes padding, and a smnul-terminated path name of the root of the data Base.
The header is followed by a configuration block, included to ensure databases be not reused if some configuratio n changes could affect their contents. The size of the configuration block in bytes was stored in the file header. The configuration block is a sequence of variable assignments, ordered by variable name. Each variable assignment consists of a smnul-terminated variable name and an ordered list of smnul-terminated Val UEs. The value list is terminated by one more NULcharacter. The ordering used is defined by the strcmp () function.
W
1.143. Mlocate https://www.centos.org/docs/5/html/5.4/technical-notes/mlocate.html
1.143. mlocate1.143.1. rhba-2009:1251:bug Fix Updatean updated mlocate package that disables scanning GFS fil E systems by default are now available.mlocate a locate/updatedb implementation. It keeps a database of all existing files and allows you to the lookup files by name. The UPDATEDB program was configured by the Mlocate package to run daily. In its default configuration, UpdateDB scans included GFS and GFS2 file systems. Running updatedb concurrently on multiple nodes leads to lock contention and large changes in cache usage. This substantially reduces the effective performance of the file system. This update excludes GFS volumes from the UpdateDB scan by default. As a consequence, locate (1) Won't report files located on GFS volumes. (bz#221547) Users is advised to upgrade the updated Mlocate package. locate (1): Find Files by Name-linux Mans page https://linux.die.net/man/1/locate Namelocate-find files by namesynopsis
Locate [OPTION] ... PATTERN...
Description
LocateReads one or more databases prepared by
updatedb(8)and writes file names matching at least one of the
PATTERNs to standard output, one per line.
If --regex is not specified, the PATTERNs can contain globbing characters. If any pattern contains no globbing characters, locate behaves as if the pattern were *Patte RN*.
By default, Locate does isn't check whether files found in database still exist. Locate can never report files created through the most recent update of the relevant database.
UpdateDB (8): Update Database for Mlocate-linux Mans page Https://linux.die.net/man/8/updatedb nameupdatedb-update a D Atabase for Mlocatesynopsis
UpdateDB [OPTION] ...
Description
UpdateDBCreates or updates a database used by
Locate(1). If the database already exists, its data are reused to avoid rereading directories, which has not changed.
updatedb is usually run daily by Cron(8) to update the default database.
Exit Status
UpdateDBReturns with Exit status 0 on success, 1 on Error
A database of all existing files