Linux查找文件、文件夹
查找目录:find /(查找范围) -name ‘查找关键字’ -type d
查找文件:find /(查找范围) -name 查找关键字 -print
例1:查找tomcat7文件夹所在的位置
find / -name 'tomcat7' -type d
例2:查找server.xml文件的位置
find / -name 'server.xml' -print
Last Update:
2023-01-28
No Comment! Be the first one.