linux 查找文件


在/home目录下查找以.txt结尾的文件名
find /home -name "*.txt"


在当前目录下查找以.htm结尾的文件名
find . -name "*.htm"


基于正则表达式匹配文件路径
find /usr/ -path "*local*"


搜索当前目录下包含portal的文件夹
find . -name "portal" -type d

posted on 2016-05-27 02:40  多多明明  阅读(204)  评论(0编辑  收藏  举报