Linux的%ignore_a_1%命令用法有:1、查找当前路径名字叫“hello.txt”的文件,用法为“find ./ -name 文件名全程”;2、查找根目录名字叫“hello.txt”的文件,用法为“find ./ -name 文件名|xargs rm”;3、查找删除名为“hello.txt”文件,用法为“find ./ -name 文件名|xargs rm”。

详细的了解一下find命令用法及参数吧。
准备条件:
Centos7.9的操作系统的服务器一台;
Xshell终端已经链接了该服务器;
1、查找当前路径名字叫“hello.txt”的文件;
用法:find ./ -name 文件名全程
例如:find ./ -name hello.txt

批量查找名为hello的文件:
find ./ -name hel*
“*”为模糊匹配

2、查找根目录名字叫“hello.txt”的文件;
用法:find / -name 文件名全程
例如:find / -name hello.txt

3、查找删除名为“hello.txt”文件;
用法:find ./ -name 文件名|xargs rm
例如:find ./ -name hello.txt|xargs rm
以上就是Linux 的find命令怎么用的详细内容,更多请关注创想鸟其它相关文章!
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。
如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件至 chuangxiangniao@163.com 举报,一经查实,本站将立刻删除。
发布者:程序猿,转转请注明出处:https://www.chuangxiangniao.com/p/100552.html
微信扫一扫
支付宝扫一扫