Tuesday, March 18, 2014

Linux: Checking Disk Space

Scenario: The monitoring system sends an email stating a Linux server is running low on disk space. I often had a hard time figuring out what part of the filesystem was growing and needed attention. I've used this a few times with good success.

cd /path/to/some/where
du -hsx * | sort -rh | head -10

Keep drilling down to find the root cause of the disk space issue.