df

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/OptionExampleDescription
dfdfDisplay disk space usage of all mounted filesystems
df -hdf -hShow sizes in human-readable format (e.g., KB, MB, GB)
df -adf -aInclude dummy file systems
df -Tdf -TDisplay file system types
df --totaldf --totalDisplay a grand total

Specific File Systems #

Command/OptionExampleDescription
df /pathdf /homeDisplay disk space usage for the specified path
df --block-size=<size>df --block-size=MDisplay sizes in the specified block size

Advanced Usage #

Command/OptionExampleDescription
df -idf -iShow inode usage instead of disk space
df --output=<field>[,<field>,...]df --output=source,fstype,used,availSpecify which columns to display

This cheatsheet covers essential df commands and options for GNU systems.

df

Explore our comprehensive cheatsheets to enhance your knowledge and efficiency. Each cheatsheet provides detailed command options, examples, and descriptions to help you master various tools and technologies.