Linux批量删除某些类型文件的命令

2012年10月9日

以前我以为只是用 #rm -rf /*.gif 就可以了,现在才发现原来有更好用的命令.

#find . -name '*.gif' -print0 | xargs -0 rm -rf

 


sicnature ---------------------------------------------------------------------
I P 地 址: 18.216.124.8
区 域 位 置: 美国俄亥俄
系 统 信 息: 美国
Original content, please indicate the source:
同福客栈论坛 | 蟒蛇科普海南乡情论坛 | JiaYu Blog
sicnature ---------------------------------------------------------------------
Welcome to reprint. Please indicate the source https://www.myzhenai.com.cn/post/811.html

没有评论

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注