首页 > 其他分享 >find命令 – 根据路径和条件搜索指定文件

find命令 – 根据路径和条件搜索指定文件

时间:2023-03-09 22:57:26浏览次数:37  
标签:name v2.8 路径 0.14 搜索 txt root find

语法格式:find [路径] [参数]

常用参数:

参数 解释
-name 匹配名称

参考案例:

find / -name "*.txt"
find /root -path '/root/H5_fort_install_v2.8.0.14' -prune -o -name "*.txt" -print 		# 忽略 /root/H5_fort_install_v2.8.0.14 这目录

标签:name,v2.8,路径,0.14,搜索,txt,root,find
From: https://www.cnblogs.com/liuzonglin/p/17201795.html

相关文章