LOCATE.CONF(5)
π locate.conf(5) β File Formats Manual π
okay bestie, this is the page for locate.conf(5) and yup β it's filed under File Formats Manual. It's the config file that tells locate.updatedb(8) how to behave, and locate.updatedb(8) is the thing that creates the locate(1) database. Slay. β¨
π NAME π
locate.conf β the locate database configuration file π
β¨ DESCRIPTION β¨
The locate.conf file specifies the behavior of locate.updatedb(8), which creates the locate(1) database.
The locate.conf file contains a list of newline separated records. Each record is composed of a keyword and arguments, separated by white space. Arguments with embedded shell metacharacters must be quoted in sh(1) style, no cap. Lines beginning with # are treated as comments and ignored. But a # in the middle of a line does not start a comment β iykyk.
The configuration options are as follows:
databasefilename β specify the location of thelocate(1)database to be created. Default:/var/db/locate.database.ignorepattern ... β ignore files or directories. When building the database, do not descend into files or directories that match one of the specified patterns. The matched files or directories are not stored to the database. Default: Not specified.ignorecontentspattern ... β ignore contents of directories. When building the database, do not descend into files or directories that match one of the specified patterns. The matched files or directories themselves are stored to the database. Default: Not specified.ignorefstype ... β ignore file system by type, adding type to the default list. When building the database, do not descend into file systems that are of the specified type. The mount points are not stored to the database. If a!is prepended to type, the meaning is negated, that is, ignore file systems which do not have the type. As a special case, ifnoneis specified for type, theignorefslist is cleared and all file systems are traversed. type is used as an argument tofind(1) -fstype. Thesysctl(8)command can be used to find out the types of file systems that are available on the system:
sysctl vfs.generic.fstypes
Default: !local cd9660 fdesc kernfs procfs.
searchpathdirectory ... β specify base directories to be put in the database. Default:/.workdirdirectory β specify the working directory oflocate.updatedb, in which a temporary file is placed. The temporary file is a list of all files, and you should specify a directory that has enough space to hold it. Default:/tmp.
Refer to find(1) for the details of pattern (see -path expression) and type (see -fstype expression).
ποΈ FILES ποΈ
/etc/locate.confβ the filelocate.confresides in/etc.
π SEE ALSO π
π°οΈ HISTORY π°οΈ
The locate.conf file format first appeared in NetBSD 2.0. β¨
π AUTHORS π
ITOH Yasufumi β iconic author credit, periodt. π
Debian πΈ April 25, 2020 πΈ LOCATE.CONF(5) β mwah, that's the sign-off bestie π
π¦ where this page comes from
- nixpkgs unstable: netbsd-source 11.0
- Copyright (c) 2004 The NetBSD Foundation, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms