find: Database Locations

1 
1 4.1 Database Locations
1 ======================
1 
1 There can be multiple file name databases.  Users can select which
1 databases 'locate' searches using the 'LOCATE_PATH' environment variable
1 or a command line option.  The system administrator can choose the file
1 name of the default database, the frequency with which the databases are
1 updated, and the directories for which they contain entries.  File name
1 databases are updated by running the 'updatedb' program, typically
1 nightly.
1 
1    In networked environments, it often makes sense to build a database
1 at the root of each filesystem, containing the entries for that
1 filesystem.  'updatedb' is then run for each filesystem on the
1 fileserver where that filesystem is on a local disk, to prevent
1 thrashing the network.
1 
1    ⇒Invoking updatedb, for the description of the options to
1 'updatedb'.  These options can be used to specify which directories are
1 indexed by each database file.
1 
1    The default location for the locate database depends on how findutils
1 is built.  If user did not specify where to look (by using '-d' or
1 setting 'LOCATE_PATH'), then 'locate' will also check for a "secure"
1 database in '/var/lib/slocate/slocate.db'.
1