ubuntu查找文件

1.whereis 文件名

特点:快速,但是是模糊查找,例如 找 #whereis mysql 它会把mysql,mysql.ini,mysql.*所在的目录都找出来.

2.find / -name 文件名

特点:准确,但速度慢,消耗资源大,例如我想找到php.ini的准确位置,就需要用

#find / -name php.ini

3.locate 文件名

强力推荐的方法,最快,最好的方法.

注意:第一次使用该命令,可能需要更新数据库,按照提示的命令执行一下就好了

作者:代码痴汉
来源:CSDN
原文:https://blog.csdn.net/lieyanhaipo/article/details/17055667
版权声明:本文为博主原创文章,转载请附上博文链接!

猜你喜欢

转载自blog.csdn.net/ielhmps7796/article/details/83789402