df command
Show free and used disk space on mounted file systems.
- Disks & storage
- Package coreutils
- 5 options · 5 examples
Syntax
df [options] [file…]Provided by the coreutils package. Run man df for the full manual.
Common options
| Option | What it does |
|---|---|
-h | Human-readable sizes |
-T | Show the file system type |
-i | Show inode usage |
-x TYPE | Hide a file system type |
--total | Add a total line |
Examples
Disk space on all file systems
df -hWith file system types
df -hTSpace on the disk holding a path
df -h /varInode usage
df -iHide temporary file systems
df -h -x tmpfs -x devtmpfs
No example matches. Check the options table or search the guides.
df guides
- df Command – Check Disk Space in Linux Linux Commands · Updated Apr 2025
- How to Check Disk Space in Ubuntu Linux · Updated Apr 2025
- Shell Script to Monitor Disk Space and Send Alert Shell Scripting · Updated Apr 2025
- How to Clear APT Cache and Free Up Disk Space Linux · Updated Apr 2025
