Quickzi: Delete files that are a year old
Wednesday, November 7th, 2007 at
9:03 am
Here’s a quick tip on how to delete files that are a certain amount of days old. In my example, I use 365 days.
find / -type f -mtime +365|xargs rm -f
You could easily replace 365 with any amount of days to achieve a different goal.
Popularity: 2% [?]
Tagged with: HowTo • Linux • quickzi • tips
Like this post? Subscribe to my RSS feed and get loads more!













Leave a Reply