df
Quick Reference
Command Name:
df
Category:
system management
Platform:
Linux/Unix
Basic Usage:
Common Use Cases
- 1
Disk space monitoring
Check available disk space on mounted filesystems
- 2
Storage management
Identify filesystems that are running low on space
- 3
System administration
Monitor disk usage across multiple partitions and drives
- 4
Capacity planning
Plan storage upgrades based on current utilization
Syntax
df [OPTION]... [FILE]...
Options
Option | Description |
---|---|
-a, --all |
Include empty, dummy, and inaccessible filesystems |
-B, --block-size=SIZE |
Scale sizes by SIZE before printing (e.g., 'K' for kilobytes) |
-h, --human-readable |
Print sizes in human-readable format (e.g., 1K, 234M, 2G) |
-H, --si |
Print sizes in powers of 1000 instead of 1024 |
-i, --inodes |
List inode information instead of block usage |
-k |
Like --block-size=1K |
-l, --local |
Limit listing to local filesystems |
-t, --type=TYPE |
Limit listing to filesystems of type TYPE |
-T, --print-type |
Print filesystem type |
-x, --exclude-type=TYPE |
Exclude filesystems of type TYPE |
--help |
Display help information |
--version |
Display version information |
Examples
How to Use These Examples
The examples below show common ways to use the df
command. Try them in your terminal to see the results. You can copy any example by clicking on the code block.