Linux: Cron for deleting old files (older than n days)

1
2
$> sudo crontab -e
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Add lines like these to crontab in order to delete older-than-n-days files from specific folder.

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.