Last Updated: February 25, 2016
·
748
· sativaware

Linux: Determine free disk space

Determining free disk space on Linux can be done quickly by using the "display free disk space" command.

Open a new Terminal and type the following:

df -h

The output of the df command will list available files systems - their size, usage and available space. The -h option reports the sizes in a "Human-readable" format(i.e Kilobyte, Megabyte, Gigabyte ... etc)

Sample output:

$ df -h

Filesystem      Size   Used  Avail Capacity  Mounted on
/dev/disk0s2   465Gi  451Gi   13Gi    98%    /
devfs          185Ki  185Ki    0Bi   100%    /dev
map -hosts       0Bi    0Bi    0Bi   100%    /net
map auto_home    0Bi    0Bi    0Bi   100%    /home