updatedbconf
updatedbconf, commonly referred to by its file name updatedb.conf, is the configuration file for the updatedb utility, the component that builds and updates the database used by the locate command. The file governs how the file system is scanned and which paths or file system types are excluded from indexing. By adjusting its settings, administrators can optimize performance, reduce indexing time, and avoid indexing sensitive or unnecessary areas.
The standard location for updatedb.conf is typically /etc/updatedb.conf, though some systems may use alternative paths or
Common configuration variables found in updatedb.conf include:
- PRUNEFS: a list of filesystem types to prune (skip) during indexing, such as proc, sysfs, devtmpfs,
- PRUNEPATHS: a list of directory paths to exclude from indexing, for example /proc, /dev, /sys, /run,
Other variables may exist depending on the distribution and version, including additional path patterns or control
Editing updatedb.conf should be done with root or appropriate privileges. Changes affect how the locate database