Интерактивная система просмотра системных руководств (man-ов)
mklocatedb (8)
>> mklocatedb (8) ( Linux man: Команды системного администрирования )
NAME
mklocatedb - make a file name database
SYNOPSIS
mklocatedb [options]
DESCRIPTION
This manual page
documents the ALT Linux version of
mklocatedb,
which makes file name databases used by ALT Linux
locate.
The file name databases contain lists of files that were in
particular directory trees when the databases were last updated.
The file name of the default database is determined when locate
and mklocatedb are configured and installed. The frequency with
which the databases are updated and the directories for which they
contain entries depend on how often mklocatedb is run, and with
which arguments.
In networked environments, it often makes sense to build a database at
the root of each filesystem, containing the entries for that filesystem.
mklocatedb
is then run for each filesystem on the fileserver where that
filesystem is on a local disk, to prevent thrashing the network.
Users can select which databases locate searches using an
environment variable or command line option; see locate(1).
Databases can not be concatenated together.
OPTIONS
--searchpaths='path1 path2...'
Directories to put in the database.
The environment variable
SEARCHPATHS also sets this value.
Default is /.
--prunepaths='path1 path2...'
Directories to not put in the database, which would otherwise be.
The environment variable
PRUNEPATHS also sets this value.
Default is /afs /mnt /net /proc /tmp /usr/tmp /var/tmp.
--prunefs='fstyp1 fstyp2...'
File systems to not put in the database, which would otherwise be.
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 autofs cardfs cefs davfs devfs devpts ftpfs iso9660 localfs ncp ncpfs nfs proc smbfs sshfs supermount udf usbdevfs vfat.
--output=dbfile
The database file to build.
The environment variable
DBFILE also sets this value.
Default is /var/lib/locate/locatedb.
--mode=mode
The database file permissions.
The environment variable
MODE also sets this value.
Default is 0644 (unless --runas have been specified;
in this case, default value is 0640).
--runas=user
The user to search directories as.
The environment variable
RUNAS also sets this value.
Default is to search directories as the current user, unless run by superuser.
In latter case, run search as user slocate.
--keep-cap
If run by superuser, keep CAP_DAC_READ_SEARCH capability.
The environment variable
KEEPCAP also sets this value.
By default, all capabilities will be dropped.
--help
Print a summary of the options to
mklocatedb
and exit.