# Linux commands: df

> Learn how the Linux df command reports disk usage for your mounted volumes, with df -h for human-readable sizes and a path to check the volume it lives on.

Author: [Flavio Copes](https://flaviocopes.com/about/) | Published: 2020-10-07 | Topics: [CLI](https://flaviocopes.com/tags/cli/) | Canonical: https://flaviocopes.com/linux-command-df/

The `df` command is used to get disk usage information.

Its basic form will print information about the volumes mounted:

![Terminal output showing df command listing mounted filesystems with raw numerical values for size, used, and available space](https://flaviocopes.com/images/linux-command-df/Screen_Shot_2020-09-08_at_08.40.39.png)

Using the `-h` option (`df -h`) will show those values in a human-readable format:

![Terminal output showing df -h command displaying disk usage in human-readable format with GB and MB units](https://flaviocopes.com/images/linux-command-df/Screen_Shot_2020-09-08_at_08.40.50.png)

You can also specify a file or directory name to get information about the specific volume it lives on:

![Terminal output showing df dev command displaying disk usage information for the specific volume containing the dev directory](https://flaviocopes.com/images/linux-command-df/Screen_Shot_2020-09-08_at_08.41.27.png)

The `df` command works on Linux, macOS, WSL, and anywhere you have a UNIX environment
