在ubuntu中搜索文件或文件夹的方法

https://blog.csdn.net/dcrmg/article/details/78000961

  1.whereis 文件名

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

  2.find / -name 文件名

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

  #find / -name php.ini

  3.locate 文件名

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

  注意:第一次使用该命令,可能需要更新数据库,updatedb

猜你喜欢

转载自blog.csdn.net/xihuanzhi1854/article/details/82142498
今日推荐