GNU df Cheatsheet
#
df
reports file system disk space usage. It is used to display information about the available and used disk space on file systems.
Basic Usage
#
Command/Option | Example | Description |
---|
df | df | Display disk space usage of all mounted filesystems |
df -h | df -h | Show sizes in human-readable format (e.g., KB, MB, GB) |
df -a | df -a | Include dummy file systems |
df -T | df -T | Display file system types |
df --total | df --total | Display a grand total |
Specific File Systems
#
Command/Option | Example | Description |
---|
df /path | df /home | Display disk space usage for the specified path |
df --block-size=<size> | df --block-size=M | Display sizes in the specified block size |
Advanced Usage
#
Command/Option | Example | Description |
---|
df -i | df -i | Show inode usage instead of disk space |
df --output=<field>[,<field>,...] | df --output=source,fstype,used,avail | Specify which columns to display |
This cheatsheet covers essential df
commands and options for GNU systems.