# man > df

---
type: CommandReference
command: df
mode: man
section: 1
source: man-pages
---
## Quick Reference

- `df` — Display all filesystems disk usage (512-byte units)
- `df {{path/to/file_or_directory}}` — Display filesystem containing the path
- `df -k` — Use kibibyte (1024-byte) units
- `df -P` — Display in POSIX portable format

## Name

`df` — report file system disk space usage

## Synopsis

shell
df [OPTION]... [FILE]...
## Description

`df` displays the amount of disk space available on the file system containing each file name argument. If no file name is given, space available on all currently mounted file systems is shown. Disk space is shown in 1K blocks by default, unless `POSIXLY_CORRECT` is set (then 512-byte blocks). If an argument is an absolute device node path, shows space on that file system rather than the device node's containing file system. Cannot show space on unmounted file systems.

## Options

- `-a, --all` — Include pseudo, duplicate, inaccessible file systems
- `-B, --block-size=SIZE` — Scale sizes by SIZE before printing (e.g., `-BM` for 1,048,576-byte units)
- `-h, --human-readable` — Print sizes in powers of 1024 (e.g., 1023M)
- `-H, --si` — Print sizes in powers of 1000 (e.g., 1.1G)
- `-i, --inodes` — List inode information instead of block usage
- `-k, --block-size` — Equivalent to `--block-size=1K`
- `-l, --local` — Limit listing to local file systems
- `--no-sync` — Do not invoke sync before getting usage info (default)
- `--output[=FIELD_LIST]` — Use output format defined by FIELD_LIST; print all fields if omitted
- `-P, --portability` — Use POSIX output format
- `--sync` — Invoke sync before getting usage info
- `--total` — Elide insignificant entries and produce a grand total
- `-t, --type=TYPE` — Limit listing to file systems of type TYPE
- `-T, --print-type` — Print file system type
- `-x, --exclude-type=TYPE` — Limit listing to file systems not of type TYPE
- `-v` — Ignored
- `--help` — Display help and exit
- `--version` — Output version information and exit

Display values are in units of the first available SIZE from `--block-size`, `DF_BLOCK_SIZE`, `BLOCK_SIZE`, or `BLOCKSIZE` environment variables. Defaults to 1024 bytes (or 512 if `POSIXLY_CORRECT` is set).

SIZE argument: integer and optional unit (e.g., `10K` = 10*1024). Units: K, M, G, T, P, E, Z, Y (powers of 1024) or KB, MB, ... (powers of 1000). Binary prefixes: KiB=K, MiB=M, etc.

FIELD_LIST: comma-separated columns. Valid field names: `source`, `fstype`, `itotal`, `iused`, `iavail`, `ipcent`, `size`, `used`, `avail`, `pcent`, `file`, `target`.

## Examples

shell
# Display all filesystems disk usage (512-byte units)
df

# Display filesystem containing the specified file or directory
df /path/to/file_or_directory

# Use kibibyte (1024-byte) units
df -k

# Display in POSIX portable format
df -P
## See Also

- [Full documentation](https://www.gnu.org/software/coreutils/df)
- Locally: `info '(coreutils) df invocation'`