slocate(secure locate)
slocate(secure locate)功能说明:查找文件或目录。
语 法:slocate [-u][--help][--version][-d <目录>][查找的文件]
补充说明:slocate本身具有一个数据库,里面存放了系统中文件与目录的相关信息。
参 数:
-d<目录>或--database=<目录> 指定数据库所在的目录。
-u 更新slocate数据库。
--help 显示帮助。
--version 显示版本信息。
slocate
slocate [options] string
Securely search database(s) of filenames and print matches. Works like locate, but it also stores file permissions and ownership information so users cannot see files to which they don't have access. In some distributions, locate is actually a symbolic link to slocate.
Options
Check the configuration file,
/etc/updatedb.conf , when updating the database.
Specify the path to the database(s) to search.
Omit the specified directories from the database. Used with -u or -U.
Omit the files on the specified filesystems from the database.
Display help information and exit.
Perform a case-insensitive search.
Specify security level. If level is 0, turn off security checking to speed up searches. If level is 1, turn on checking. The default is 1.
Limit the number of results to num.
Specify the database file to create with -u or -U.
Run in quiet mode, suppressing error messages.
Search the database using the specified POSIX regular expression.
Create an slocate database starting at /.
Create an slocate database starting at the specified directory.
Run in verbose mode, displaying the files when creating the database.
Print version information and exit.