Next: , Previous: Invoking locate, Up: Reference



7.3 Invoking updatedb

     updatedb [option...]
--findoptions='OPTION...'
Global options to pass on to find. The environment variable FINDOPTIONS also sets this value. Default is none.
--localpaths='path...'
Non-network directories to put in the database. Default is /.
--netpaths='path...'
Network (NFS, AFS, RFS, etc.) directories to put in the database. The environment variable NETPATHS also sets this value. Default is none.
--prunepaths='path...'
Directories to omit from the database, which would otherwise be included. The environment variable PRUNEPATHS also sets this value. Default is /tmp /usr/tmp /var/tmp /afs.
--prunefs='path...'
File systems to omit from the database, which would otherwise be included. Note that files are pruned when a file system is reached; Any file system mounted under an undesired file system will be ignored. The environment variable PRUNEFS also sets this value. Default is nfs NFS proc.
--output=dbfile
The database file to build. Default is system-dependent, but typically /usr/local/var/locatedb.
--localuser=user
The user to search the non-network directories as, using su. Default is to search the non-network directories as the current user. You can also use the environment variable LOCALUSER to set this user.
--netuser=user
The user to search network directories as, using su. Default is daemon. You can also use the environment variable NETUSER to set this user.
--old-format
Generate a locate database in the old format, for compatibility with versions of locate other than GNU locate. Using this option means that locate will not be able to properly handle non-ASCII characters in filenames (that is, filenames containing characters which have the eighth bit set, such as many of the characters from the ISO-8859-1 character set).
--help
Print a summary of the command-line argument format and exit.
--version
Print the version number of updatedb and exit.