linux delete files older than 3 days
4 down vote accepted
|
This is easy enough (although note that this goes by a modification time more than 3 days ago since a creation time is only available on certain filesystems with special tools):
Remove the To have it run by cron, I would probably just create an executable script (add a shebang - UpdateAs noted below, the
Again remove the Update2To quote from Stéphane Chazelas comment below:
|
link:http://unix.stackexchange.com/questions/136804/cron-job-to-delete-files-older-than-3-days
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。