The Linux df Command: Finding Disk Space
The Linux df Command: Finding Disk Space
"Your disk is full." Three vague words from my boss. Which disk? Which folder? Using df, I found the answer in seconds. Let me show you how.
First df Commands
Basic
df
Human readable
df -h
Shows KB, MB, GB.
Filesystem type
df -T
Shows filesystem type.
Specific filesystem
df -h /dev/sda1
df Commands That Work
With inode info
df -i
Inode usage.
Total summary
df -hT --total
Everything with grand total.
Local filesystems
df -ht ext4
Only ext4.
Conclusion: df Is Essential
df shows which filesystems are full. Use -h always.
The df Command Builder makes filtering easy.
