Show free disk space in human-readable units
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 Size Used Avail Use% 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 -hThe 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
01dfDisk free utilityReports filesystem capacity and usage.
02-hHuman-readable sizesFormats byte counts with units such as GiB and MiB.
Example output
Filesystem Size Used Avail Use% Mounted on
/dev/nvme0n1p2 466G 182G 261G 42% /
/dev/nvme0n1p1 511M 6.1M 505M 2% /boot/efi
Illustrative output — exact values vary by system and data.
Runbooks
Official sources