unixdev.net


Switch to SpeakEasy.net DSL

The Modular Manual Browser

Home Page
Manual: (NetBSD-2.0)
Page:
Section:
Apropos / Subsearch:
optional field

LOCATE.CONF(5)              BSD File Formats Manual             LOCATE.CONF(5)

NAME
     locate.conf -- locate database configuration file

DESCRIPTION
     The locate.conf file specifies the behavior of
     /usr/libexec/locate.updatedb, which creates locate(1) database.

     The locate.conf file contains a list of newline separated records, each
     of which is composed of a keyword and arguments, which are separated by
     white space.  Lines beginning with ``#'' are treated as comments and
     ignored.  However, a ``#'' in the middle of a line does not start com-
     ment.

     The configuration options are as follows:

     ignore pattern ...
             Ignore files or directories.  On building database, do not
             descend into files or directories which match one of the speci-
             fied patterns.  The matched files or directories are not stored
             to the database.

             Default: Not specified.

     ignorecontents pattern ...
             Ignore contents of directories.  On building database, do not
             descend into files or directories which match one of the speci-
             fied patterns.  The matched files or directories themselves are
             stored to the database.

             Default: Not specified.

     ignorefs type ...
             Ignore filesystem by type.  On building database, do not descend
             into filesystems which have one 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 filesystems
             which do not have the type.  As a special case, if ``none'' is
             specified for type, the default rule is disabled and all filesys-
             tems are traversed.

             Default: !local cd9660 fdesc kernfs procfs

     searchpath directory ...
             Specify base directories to be put in the database.

             Default: /

     workdir directory
             Specify the working directory of locate.updatedb, in which a tem-
             porary 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 file locate.conf resides in /etc.
     /usr/libexec/locate.updatedb  Uses settings in locate.conf.

SEE ALSO
     find(1), locate(1)

HISTORY
     The locate.conf file format first appeared in NetBSD 2.0.

AUTHORS
     ITOH Yasufumi <itohyATNetBSD.org>

BSD                            February 7, 2004                            BSD