linux locate - find files by name

【基本介绍】
这里我们介绍locate命令,用来查找文件。

【安装配置】
安装mlocate
yum install mlocate

生成db数据文件
[root@root ~]# updatedb 
[root@root ~]# ls /var/lib/mlocate/mlocate.db 
 /var/lib/mlocate/mlocate.db

用locate进行查找
[root@root tmp]# locate 6385.conf
/etc/redis/6385.conf



【参考引用】
https://www.digitalocean.com/community/tutorials/how-to-use-find-and-locate-to-search-for-files-on-a-linux-vps

猜你喜欢

转载自runpanda.iteye.com/blog/2167145