df -- report filesystem disk space usage


df is as specified in the Single UNIX Specification but with the following differences.

If the -k option is not specified, disk space is shown in unspecified units. Applications should specify -k.

If an argument is the absolute file name of a disk device node containing a mounted filesystem, df shows the space available on that filesystem rather than on the filesystem containing the device node (which is always the root filesystem).

LSB Deprecated Differences

The behaviors specified in this section are expected to disappear from a future version of the LSB; applications should only use the non-LSB-deprecated behaviors.

-a, --all

includes filesystems having 0 blocks.


uses SIZE-byte blocks.

-h, --human-readable

prints sizes in human-readable format (e.g., 1K, 234M, 2G).

-H, --si

prints sizes in human-readable format, but uses powers of 1000 (not 1024).

-i, --inodes

lists inode information instead of block usage.

-l, --local

limits listing to local filesystems.

-m, --megabytes

is like --block-size=1048576


does not invoke sync before getting usage info. (default)

-P, --portability

uses the POSIX output format.


invokes sync before getting usage info.

-t, --type=TYPE

has unspecified behavior.


is same as -P as specified in the Single UNIX Specification.


invokes sync before getting usage info.

-t, --type=TYPE

limits listing to filesystems of type TYPE. (Different from behavior as specified in the Single UNIX Specification.)

-T, --print-type

prints filesystem type.

-x, --exclude-type=TYPE

limits listing to filesystems not of type TYPE.