Linux

Checking Disk Space Usage

Quickly check available disk space on your server using the df command. By default values are displayed in 1K blocks which is why we added the h flag to display values in a more “human readable” format i.e. Megs and Gigs.

df -h

[warning]Filesystem            Size  Used Avail Use% Mounted on
/dev/sda1              36G  1.6G   32G   5% /
none                  244M  216K  244M   1% /dev
none                  248M     0  248M   0% /dev/shm
none                  248M   36K  248M   1% /var/run
none                  248M     0  248M   0% /var/lock
none                  248M     0  248M   0% /lib/init/rw
[/warning]