wd and cc

— Happy every day

find命令查找删除30天之前的文件

Posted at — May 9, 2006
find /data -name "xxx.*" -follow -ctime +30 -exec rm -rf {} \;
删除30天之前的文件。
-follow表示跟随链接。
comments powered by Disqus