Linux下查找文件的方法

在Linux环境下查找一个文件的方法:find 路径 -name 'filename',filename不清楚全名的话可以用*号进行匹配,如“tomcat.*”。如果不清楚路径的话可以用"/"表示所有路径下查找

[root@localhost home]# find /home -name 'tomcat.*'
/home/tomcat_oa/webapps/docs/appdev/sample/web/images/tomcat.gif
/home/tomcat_oa/webapps/docs/images/tomcat.gif
/home/tomcat_oa/webapps/docs/images/tomcat.svg
/home/tomcat_oa/webapps/ROOT/tomcat.png
/home/tomcat_oa/webapps/ROOT/tomcat.gif
/home/tomcat_oa/webapps/ROOT/tomcat.css
/home/tomcat_oa/webapps/ROOT/tomcat.svg
/home/tomcat_oa/webapps/host-manager/images/tomcat.gif
/home/tomcat_oa/webapps/manager/images/tomcat.gif
原文地址:https://www.cnblogs.com/pachongshangdexuebi/p/4795411.html