Users Online

We have 105 guests online
Check Disk Spcae Linux PDF Print E-mail
Written by Zack MIlls   
Wednesday, 09 December 2009 08:23
Submitted by kai on Thu, 2009-03-26 10:21. ::

Surprisingly, I often run into the problem of running out of disk space in Linux.

Here are some simple commands to check what consumes the most space:

  • "df -k" shows the percentage of disk consumption for each partition
  • "du --max-depth 1 -h /" shows how much space each directory under "/" consumes in megabytes
  • "du -sm * | sort -n" does the same thing as the previous command