df (disk free)

Article by:
Date Published:
Last Modified:


The df (disk free) program allows you to see how much space has been used up (and how much is still available) on all of the current mounted file systems.


The basic way to use df is simply:

$ df

However, this displays sizes in bytes, which on today’s GB+ systems, is not very human readable. To fix this, use:

$ df -h

This prints out sizes with human-readable prefixes (e.g. kB, MB, GB). The h stands for “Human readable”. Note -H can also be used, but this will use powers of 1000 rather than 1024 is calculate sizes (this is normally not recommended, as the “correct” way is to use powers of 1024).


Geoffrey Hunter

Dude making stuff.

Creative Commons License
This work is licensed under a Creative Commons Attribution 4.0 International License .


    comments powered by Disqus