Thursday, April 18, 2013

Linux: check available space on each filesystem

To check used/available space on each filesystem, use the following command:

df -h

example output:

Filesystem            Size  Used Avail Use% Mounted on
/dev/sda1             285G   16G  256G   6% /
none                  1.9G  288K  1.9G   1% /dev
none                  1.9G  3.6M  1.9G   1% /dev/shm
none                  1.9G  100K  1.9G   1% /var/run
none                  1.9G     0  1.9G   0% /var/lock


-h param stands for human-readable and if you don't specify it, sizes will be printed in bytes

No comments:

Post a Comment