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/:
- Write the output of
df -hto /tmp/df_output.txt - Find the single largest directory under /tmp/data/ → write its path to /tmp/biggest_dir.txt
- 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.