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



猜你喜欢

转载自www.cnblogs.com/zquan/p/9746362.html