PROGRAMS

df (disk free)

Article by:
Date Published:
Last Modified:

Overview

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.

Usage

The basic way to use df is simply:

1
$ df

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

1
$ 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).


Authors

Geoffrey Hunter

Dude making stuff.

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

Tags

    comments powered by Disqus