What does df do?
df shows how much disk space is used and free on each mounted file system.
df [-h]
Most useful options
| Option | What it does |
|---|---|
| -h | human-readable sizes |
| -i | inode usage |
df examples
$ df -h
Try it ›
disk usage in GB/MB
In security work
A full disk stops logging — attackers sometimes fill disks so their actions are not recorded.
Questions about df
How do I check disk space in Linux?
df -h for disks, du -sh folder for one folder.