creates or updates a database used by
If the database already exists,
its data is reused
to avoid rereading directories that have not changed.
is usually run daily by
to update the default database.
returns with exit status 0 on success, 1 on error.
The PRUNE_BIND_MOUNTS, PRUNEFS,
variables, which are modified by some of the options, are documented in detail
-f, --add-prunefs FS
Add entries in white-space-separated list FS to PRUNEFS.
-n, --add-prunenames NAMES
Add entries in white-space-separated list NAMES to PRUNENAMES.
-e, --add-prunepaths PATHS
Add entries in white-space-separated list PATHS to PRUNEPATHS.
Store only results of scanning the file system subtree rooted at PATH to
the generated database.
The whole file system is scanned by default.
outputs entries as absolute path names which don't contain symbolic links,
regardless of the form of PATH.
Write debugging information about pruning decisions to standard error output.
Write a summary of the available options to standard output
and exit successfully.
Write the database to
instead of using the default database.
to FLAG, overriding the configuration file.
Set PRUNEFS to FS, overriding the configuration file.
Set PRUNENAMES to NAMES, overriding the configuration file.
Set PRUNEPATHS to PATHS, overriding the configuration file.
Set the ``require file visibility before reporting it'' flag in the
generated database to FLAG.
or if the database file is readable by "others"
or it is not owned by mlocate,
outputs the database entries even if the user running
could not have read the directory necessary to find out the file described
by the database entry.
checks the permissions of parent directories of each entry
before reporting it to the invoking user.
To make the file existence truly hidden from other users, the database
group is set to
and the database permissions prohibit reading the database by users using
other means than
which is set-gid mlocate.
Note that the visibility flag is checked only if the database is owned by
and it is not readable by "others".
Output path names of files to standard output, as soon as they are found.
Write information about the version and licence of
on standard output and exit successfully.
To create a private mlocate database as an user other than root,
updatedb -l 0 -odb_file-Usource_directory
Note that all users that can read
can get the complete list of files in the subtree of source_directory.