Linux命令参考
latest
归档备份和压缩
日期与时间
磁盘和文件系统
文件和目录
basename
lsattr/chattr
chattr
chmod
chown
cp
du
file
find
ln
locate
简介
选项
示例
ls
mkdir
mknod
mktemp
mv
pwd
rename
rmdir
rm
slocate
stat
tmpwatch
touch
tree
whereis
内核
网络
包管理
Linux命令参考
Docs
»
文件和目录
»
locate
Edit on GitHub
locate
¶
简介
¶
从数据库(updatedb生成)中检索对应的文件
选项
¶
-b 只打印文件名
-c 仅打印次数
-d 指定查询数据库
-e 仅打印文件系统中存在的文件
-L 检查文件是跟踪软链接
-i 忽略大小写
-l 限制打印个数
-P 不跟踪链接
-0 不换行打印
-S 统计信息
-r 用过正则匹配
-w 打印绝对路径
示例
¶
通过正则查找文件:
locate
-
r
"locate.rst$"
Read the Docs
v: latest
Versions
latest
Downloads
pdf
html
epub
On Read the Docs
Project Home
Builds
Free document hosting provided by
Read the Docs
.