one-liner cron entry to remove files downloaded more than 30 days ago

Adrian Rollett bio photo By Adrian Rollett

0 10 * * * /usr/bin/find ~/Downloads -ctime +30 -print0|xargs -0 rm -rf

I assume no liability for any unintended results! ;)


Post Comment