locate: add Chinses translation
This commit is contained in:

committed by
Agniva De Sarker

parent
69cc1fc7ba
commit
503fa433c2
15
pages.zh/osx/locate.md
Normal file
15
pages.zh/osx/locate.md
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
# locate
|
||||||
|
|
||||||
|
> 快速查找文件名.
|
||||||
|
|
||||||
|
- 在数据库中查找关键字。注意:数据库定期重新更新(通常每周或每天):
|
||||||
|
|
||||||
|
`locate {{关键字}}`
|
||||||
|
|
||||||
|
- 按文件名查找文件(不包含填充字符的模式被解释为 `*关键字*`):
|
||||||
|
|
||||||
|
`locate */{{文件名}}`
|
||||||
|
|
||||||
|
- 重新建立文件数据索引数据库.如果要查找最近添加的文件,则需要执行此操作:
|
||||||
|
|
||||||
|
`sudo /usr/libexec/locate.updatedb`
|
Reference in New Issue
Block a user