wd and cc

-- Good good study, day day up!

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