Hands-on task
This task is step 9 of the course “Disks, links and free space”
Purge files older than 30 days
Files pile up in /root/spool, and the old ones need to be purged. Delete all files modified more than 30 days ago, and leave the fresh ones untouched.
Reference:find
What you'll practise:
- find
- -mtime
- file age
- bulk deletion
- time filter