Show filesystem inode usage
Build a paste-ready command, then review its compatibility and effects before running it.
read-onlyno known side effects Compatibility
Linux + macOSVerified for Linux, macOS using posix, bash, zsh syntax.
Operational knowledgereview due 2027-01-19
Requirementsdfdf must be installed and available on PATH.
Version supportdf Current supported releasesVerified for linux, macos using posix, bash, zsh syntax; consult compatibility notes for platform-specific differences.
Expected signalsFilesystem Inodes IUsed IFree IUse% Mounted onRepresentative successful output; values vary with the selected target and system state.
Known errorsdf: command not founddf is missing or is not available on PATH.
Verifydf -iThe output matches the expected target and exits without an error.Rollback noteNot required: this command is read-only and does not change system state.
Command breakdown
01dfCommandRuns the df stage of this one-liner.
02-iOptionConfigures df with the -i option.
Example output
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/nvme0n1p2 61054976 842116 60212860 2% /
/dev/sdb1 32768000 973224 31794776 3% /srv/data
Illustrative output — exact values vary by system and data.
Runbooks
Official sources