Report disk space usage of mounted filesystems.
low risk
df shows disk space for each filesystem. -h makes sizes human-readable. -T shows the filesystem type (ext4, xfs, tmpfs). Filter with grep to exclude tmpfs mounts in containers which can clutter output.
| Flag | Meaning |
|---|---|
-h --human-readable | Show sizes in K, M, G, T |
-T --print-type | Show filesystem type |
-i --inodes | Show inode usage instead of block usage |
--total | Show a grand total row |
df -hT | grep -v tmpfsShow real disk usage excluding temporary filesystems · explain & risk-check →df -i /Check inode usage on root — exhaustion prevents new files even with free space · explain & risk-check →df -h --totalAll filesystem usage with a total summary line · explain & risk-check →A disk can show free space but give 'No space left on device' — always check inodes with `df -i` too.
Reference text is hand-written and may be incomplete — check man df for your version. Test destructive commands on a non-production system first.