DF Command Generator
Build copy-ready df commands to inspect disk capacity, filesystem types, mount usage, and inode consumption.
Choose what to inspect
Custom columns and reporting
Useful DF examples for daily work
Search by task, review what each command does, and copy it directly.
Shows total, used, and available capacity for all mounted filesystems in human-readable units.
df -hAdds the filesystem type so you can distinguish ext4, XFS, tmpfs, NFS, and other storage.
df -hTDisplays inode usage instead of byte usage. A filesystem can run out of inodes even when free space remains.
df -ihReports the filesystem that contains /var/log, without requiring you to know its device name.
df -h /var/logExcludes remote filesystems and focuses the report on storage attached locally to the system.
df -h --localRemoves common memory-backed pseudo filesystems for a cleaner physical-storage report.
df -h -x tmpfs -x devtmpfsFilters the report to filesystems whose type is ext4.
df -h -t ext4ext4 with xfs, nfs, or another supported type.Adds a final summary row that combines the displayed filesystem capacities.
df -h --totalKeeps the heading and displays filesystems whose usage percentage is 80 or higher.
df -hP | awk 'NR==1 || $5+0 >= 80'Sorts the filesystem rows numerically by the percentage-used column.
df -hP | sort -k5 -n-r to sort to show the fullest entries first.Displays only the device, size, used space, free space, percentage, and mount point.
df -h --output=source,size,used,avail,pcent,targetShows capacity and mount information only for NFS filesystems.
df -hT -t nfs -t nfs4No matching predefined commands were found.
How to use the DF command
Start with a readable overview
Run df -h to see mounted filesystems, total size, used space, available space, utilization percentage, and mount points.
Check a specific location
Use df -h /var/log to identify the filesystem that stores a path. This is often more useful than guessing the device name.
Check inodes when space looks free
Run df -ih when applications report “No space left on device” but byte capacity remains. Too many small files can exhaust inodes.
Verify filesystem types
Use df -hT before filtering local, temporary, or network-backed filesystems.
Interpret the result
Use% is the percentage consumed. Very high usage can prevent logs, databases, updates, and applications from writing data.
Confirm platform support
Use df --help on GNU/Linux or man df on any Unix-like system because options differ across platforms.
Quick option reference
| Option | Purpose | Example |
|---|---|---|
-h | Human-readable powers of 1024 | df -h |
-H | Human-readable powers of 1000 | df -H |
-i | Show inode usage instead of bytes | df -ih |
-T | Show filesystem type | df -hT |
-t | Include a filesystem type | df -h -t ext4 |
-x | Exclude a filesystem type | df -h -x tmpfs |
-P | Portable POSIX output | df -P |
--output | Select GNU output columns | --output=source,pcent,target |
Use both df -h and df -ih. Byte capacity and inode capacity are separate limits.
df reports filesystem capacity. Use du when you need to determine which directories or files consume the space.
Your feedback matters