BSD df Cheatsheet
#
df
reports file system disk space usage. It provides information about the disk space usage of file systems in BSD 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 -k | df -k | Show sizes in kilobytes (default) |
df -m | df -m | Show sizes in megabytes |
Specific File Systems
#
Command/Option | Example | Description |
---|
df /path | df /home | Display disk space usage for the specified path |
Advanced Usage
#
Command/Option | Example | Description |
---|
df -i | df -i | Show inode usage instead of disk space |
This cheatsheet covers essential df
commands and options for BSD systems.