ubuntu 下查找某个文件的方法

  1.whereis 文件

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

  2.find / -name 文件名或文件夹名

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

  #find / -name php.ini

  3.locate 文件

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

原文链接

http://blog.csdn.net/lieyanhaipo/article/details/17055667

原文地址:https://www.cnblogs.com/curious2017/p/6296925.html