中国志愿者服务网站登录注册,seo技术优化,企业管理平台app,手机报价网站大全个人博客地址#xff1a;shell -c | 一张假钞的真实世界
shell -c {string}#xff1a;表示命令从-c后的字符串读取。在需要使用管道或者重定向需要sudo时很有用#xff0c;如下#xff1a;
$ sudo find ../*/exportFiles -mtime 15 -name * | xargs -I {} r…个人博客地址shell -c | 一张假钞的真实世界
shell -c {string}表示命令从-c后的字符串读取。在需要使用管道或者重定向需要sudo时很有用如下
$ sudo find ../*/exportFiles -mtime 15 -name * | xargs -I {} rm -rf {}
rm: cannot remove i_20201108_CONTENTINFO_xy_001.dat: Permission denied
按照以下方式处理即可
$ sudo sh -c find ../*/exportFiles -mtime 15 -name * | xargs -I {} rm -rf {}