Delete files older than x days
From Tech-Wiki
Revision as of 21:13, 23 October 2017 by Fabricio.Lima (Talk | contribs)
To exclude files older than 30 days:
find /var/log -type f -mtime +30 -exec rm {} \;
To exclude files older than 30 days:
find /var/log -type f -mtime +30 -exec rm {} \;