A Linux server's disk is 100% full and the app is down. Fix it in 10 minutes.

BeginnerHands-onLive debugging tasks
Answer
df -h                                   # which mount
df -i                                   # or inodes exhausted?
sudo du -xh --max-depth=1 /var | sort -rh | head
sudo journalctl --vacuum-size=500M
sudo find /var/log -name '*.gz' -mtime +7 -delete
sudo lsof +L1                           # deleted files still held open by a process
docker system df && docker system prune -f

Key trick → If df says full but du doesn't add up, a process is holding a deleted file open (lsof +L1). Truncate it with : > /proc/<pid>/fd/<n> or restart that process.

All Real-World Interview questions Roadmap: Interview readiness

More on Live debugging tasks