Product SiteDocumentation Site

16.3.5. Using the df Command

The df command reports the system's disk space usage, for example:
~]$ df
Filesystem                       1K-blocks    Used Available Use% Mounted on
rootfs                            20642428 3610728  16822056  18% /
devtmpfs                           1532396       0   1532396   0% /dev
tmpfs                              1542404     440   1541964   1% /dev/shm
tmpfs                              1542404   47500   1494904   4% /run
/dev/mapper/vg_test-lv_fedora_16  20642428 3610728  16822056  18% /
tmpfs                              1542404   47500   1494904   4% /run
tmpfs                              1542404       0   1542404   0% /sys/fs/cgroup
tmpfs                              1542404       0   1542404   0% /media
By default, this utility shows the partition size in 1 kilobyte blocks and the amount of used and available disk space in kilobytes. To view the information in megabytes and gigabytes, supply the -h command line option, which causes du to display the values in a human-readable format:
~]$ df -h
Filesystem                        Size  Used Avail Use% Mounted on
rootfs                             20G  3.5G   17G  18% /
devtmpfs                          1.5G     0  1.5G   0% /dev
tmpfs                             1.5G  440K  1.5G   1% /dev/shm
tmpfs                             1.5G   47M  1.5G   4% /run
/dev/mapper/vg_test-lv_fedora_16   20G  3.5G   17G  18% /
tmpfs                             1.5G   47M  1.5G   4% /run
tmpfs                             1.5G     0  1.5G   0% /sys/fs/cgroup
tmpfs                             1.5G     0  1.5G   0% /media
Note that the /dev/shm entry represents the system's virtual memory file system, /sys/fs/cgroup is a cgroup file system, and /run contains information about the running system.
For a complete list of available command line options, refer to the df(1) manual page.