CmdID

CmdID / Commands

df

The "disk free" command shows total/used/available disk space for each filesystem listed on the command line, or all currently mounted filesystems. toybox

On Linux, macOS, FreeBSD, NetBSD, OpenBSD

Opens CmdID with your command. It is read in your browser and sent nowhere.

Linux

from the toybox, 0BSD

The "disk free" command shows total/used/available disk space for each filesystem listed on the command line, or all currently mounted filesystems. Pedantic provides a slightly less useful output format dictated by POSIX, and sets the units to 512 bytes instead of the default 1024 bytes.

df [-aHhikP] [-t TYPE] [FILE...]
-aShow all (including /proc and friends)
-HHuman readable (k=1000)
-hHuman readable (K=1024)
-iShow inodes instead of blocks
-kSets units back to 1024 bytes (the default without -P)
-PThe SUSv3 "Pedantic" option (512 byte blocks)
-t TYPEDisplay only filesystems of this type

Several platforms

from tldr-pages, CC BY 4.0

Display an overview of the filesystem disk space usage.

Display all filesystems and their disk usage (using 512-byte units)

Display the filesystem containing the specified file or directory

df path/to/file_or_directoryIdentify

Use kibibyte (1024 byte) units when showing size figures

-kSets units back to 1024 bytes (the default without -P) toybox

Display information in a portable way

-PThe SUSv3 "Pedantic" option (512 byte blocks) toybox

Display an overview of the filesystem disk space usage.

Display all filesystems and their disk usage

Display all filesystems in human-readable form

df --human-readableIdentify

Display the filesystem containing the specified file or directory

df path/to/file_or_directoryIdentify

Include statistics on the number of free inodes

df --inodesIdentify

Display filesystems but exclude the specified types

df --exclude-type squashfs --exclude-type tmpfsIdentify

Display filesystem types

df --print-typeIdentify

Display an overview of the filesystem disk space usage.

Display all filesystems and their disk usage (using 512-byte units)

Use human-readable units (based on powers of 1024) and display a grand total

df -h -cIdentify
-hHuman readable (K=1024) toybox

Use Human-readable units (based on powers of 1000)

df --siIdentify

Display the filesystem containing the specified file or directory

df path/to/file_or_directoryIdentify

Include statistics on the number of free and used inodes, including the filesystem tYpes

df -iYIdentify
-iShow inodes instead of blocks toybox

Use kibibyte (1024 byte) units when showing size figures

-kSets units back to 1024 bytes (the default without -P) toybox

Display information in a Portable way

-PThe SUSv3 "Pedantic" option (512 byte blocks) toybox

FreeBSD

from tldr-pages, CC BY 4.0

Display an overview of the filesystem disk space usage.

Display all filesystems and their disk usage (using 512-byte units)

Use human-readable units (based on powers of 1024) and display a grand total

df -h -cIdentify
-hHuman readable (K=1024) toybox

Use Human-readable units (based on powers of 1000)

-HHuman readable (k=1000) toybox

Display the filesystem containing the specified file or directory

df path/to/file_or_directoryIdentify

Include statistics on the number of free and used inodes, including the filesystem Types

df -iTIdentify
-iShow inodes instead of blocks toybox

Use kibibyte (1024 byte) units when showing size figures

-kSets units back to 1024 bytes (the default without -P) toybox

Display information in a Portable way

-PThe SUSv3 "Pedantic" option (512 byte blocks) toybox

NetBSD

from tldr-pages, CC BY 4.0

Display an overview of the filesystem disk space usage.

Display all filesystems and their disk usage (using 512-byte units)

Use human-readable units (based on powers of 1024)

-hHuman readable (K=1024) toybox

Display all the fields of the structure(s) returned by statvfs

Display the filesystem containing the specified file or directory

df path/to/file_or_directoryIdentify

Include statistics on the number of free and used inodes

-iShow inodes instead of blocks toybox

Use kibibyte (1024 byte) units when showing size figures

-kSets units back to 1024 bytes (the default without -P) toybox

Display information in a Portable way

-PThe SUSv3 "Pedantic" option (512 byte blocks) toybox

OpenBSD

from tldr-pages, CC BY 4.0

Display an overview of the filesystem disk space usage.

Display all filesystems and their disk usage (using 512-byte units)

Display all filesystems in human-readable form (based on powers of 1024)

-hHuman readable (K=1024) toybox

Display the filesystem containing the specified file or directory

df path/to/file_or_directoryIdentify

Include statistics on the number of free and used inodes

-iShow inodes instead of blocks toybox

Use kibibyte (1024 byte) units when showing size figures

-kSets units back to 1024 bytes (the default without -P) toybox

Display information in a Portable way

-PThe SUSv3 "Pedantic" option (512 byte blocks) toybox