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):

Your tasks:

  1. Run du -sh /tmp/cleanup/* to understand what is using space
  2. Remove all .gz files from /tmp/cleanup/old_logs/
  3. Clear all files from /tmp/cleanup/cache/
  4. Verify /tmp/cleanup/app/db.sqlite still exists
  5. 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.