Linux查找文件、文件夹

https://www.jianshu.com/p/f3a46e5c96ba

 

查找目录:find /(查找范围) -name '查找关键字' -type d
查找文件:find /(查找范围) -name 查找关键字 -print

例1:查找tomcat7文件夹所在的位置

find / -name 'tomcat7' -type d 

例2:查找server.xml文件的位置

find / -name 'server.xml' -print



posted @ 2018-10-05 23:43  chenzquan  阅读(267)  评论(0)    收藏  举报