98

linux 文件查找 (locate 与 find)-xiaoyuqaq的博客-51CTO博客

 6 years ago
source link: http://blog.51cto.com/13572413/2065735
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
文件查找目录1.locate2.find一.locatelocate命令基于数据库db,所以不能实时更新他有如下的特点:1.查找速度快2.是模糊查找(可能搜到了文件,也有可能搜到了目录)3.是非实时的查找4.由于权限的原因可能只查找到一部分的文件locate参数:-i不区分大小写-nN只列举前N个项目-r支持正则表达式locatexiaoyu搜索名称或路径中带有"xiaoyu"的文件例:二.fin

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK