Disk Full — Fix Without Breaking Prod
Emergency disk cleanup: reclaim space by safely removing only non-critical files.
A advanced Linux challenge worth 20 points. Solve it hands-on in a real Linux environment in your browser - no local setup, no fake shells.
The Challenge
CRITICAL ALERT: Disk usage in /tmp/cleanup/ is at 97%. The database will stop accepting writes if it hits 100%.
Rules (read carefully):
- SAFE to delete: anything in /tmp/cleanup/cache/ and /tmp/cleanup/old_logs/
- NEVER delete: anything in /tmp/cleanup/app/ (live production data!)
Your tasks:
- Run
du -sh /tmp/cleanup/*to understand what is using space - Remove all .gz files from /tmp/cleanup/old_logs/
- Clear all files from /tmp/cleanup/cache/
- Verify /tmp/cleanup/app/db.sqlite still exists
- Write "CLEANED" to /tmp/cleanup_done.txt
Commands to learn: du -sh, find -name "*.gz" -delete, rm, careful use of wildcards
Run check when done.