locate可以协助快速搜索某个文件


$ locate sudoers

/etc/sudoers
/etc/sudoers.d


locate 会读取由updatedb更新的数据库信息来达到快速搜索的目的


一些比较重要的用法:

-i 选项用于忽略大小写

--regex 使用正则表达式进行搜索