A full disk is a common reason for random service crashes in Linux. Here is a quick 3-step checklist to find and fix it:
- Check disk usage Find which partition is full:
df -PhT
- Spot the largest folders Locate the top 10 space-consuming directories:
sudo du -sh /* 2>/dev/null | sort -hr | head -n 10
- Quick cleanup commands Clear log files:
sudo truncate -s 0 /var/log/syslog
Clear package cache:
sudo apt clean
Check open deleted files:
sudo lsof +L1
What’s your go-to command when storage runs out? Let me know in the comments!
Top comments (0)