MarS
Martin Sladek blog
2009-10-29
Find and delete old files in Linux
Delete old files under Linux OS:
Command:
$ find /var/log -mtime +60 -type f -exec rm -rf {} \;
Description:
Command will delete files from directory /var/log which were last modified at least 60 days ago.
Source:
LinuxQuestions
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.
‹
›
Home
View web version
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.