Clean up your Downloads folder with cron

I posted before about the beauty of an empty Downloads folder. Here’s a cron task you can drop in or alter so you don’t have to install something like Hazel:

# Move Downloads that are more than one week old to trash
0 * * * * find ~/Downloads/* -mtime +7 -exec mv {} ~/.Trash \;

Tweak it as needed to save/move stuff you want to keep or to clear your Desktop too, etc.

Thanks for reading! Subscribe via email or RSS, follow me on Twitter, or discuss this post on Reddit!

search previous next tag category expand menu location phone mail time cart zoom edit close