Quickzi: Delete files that are a year old
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% [?]
Like this post? Subscribe to my RSS feed and get loads more!