Hunt the Disk Hog

df, du, find — locate what is eating your disk before the server crashes.

A intermediate Linux challenge worth 10 points. Solve it hands-on in a real Linux environment in your browser - no local setup, no fake shells.

The Challenge

Scenario: ALERT: disk usage is at 92% on the production server. You have ~30 minutes before things start failing.

Your tasks under /tmp/data/:

  1. Write the output of df -h to /tmp/df_output.txt
  2. Find the single largest directory under /tmp/data/ → write its path to /tmp/biggest_dir.txt
  3. Find all files larger than 50MB anywhere under /tmp/data/ → write their paths to /tmp/large_files.txt

Commands to learn: df -h, du -sh, du --max-depth=1, find -size +50M

Run check when done.