df [-b | -h | -H | -k | -m | -g | -P] [-ailn] [-t] [-T type] [file | filesystem …]
Displays statistics about the amount of disk space on the filesystem
or on the filesystem where file
exists.
If neither file
nor filesystem
is specified, statistics for all mounted filesystems are displayed (subject to -T
).
-a |
$BLOCKSIZE
block counts are this size.$COMMAND_MODE
legacy
behaves like Mac OS X 10.3 , unix2003
behave like Version 3 of the
Single UNIX Specification (SUSv3)
BUGS
The -n
and -t
are ignored if a file or filesystem is specified.
Legacy Description
The "capacity" percentage is normally rounded up to the next higher integer.
In legacy mode, it is truncated to the next lower integer.
When -P
and -k
option are used together, sizes are reported in 1024-blocks.
In legacy mode, when the -P option and -k option are used together, the last option specified dictates the reported block size.
The -t is normally a no-op (Mac OS X already prints the total allocated-space figures).
In legacy mode, it is equivalent to -T.
For more information about legacy mode, see compat(5).
For example : the container in which HighSierra and Photos exist is 39.44GB although 15+11+8+8 = 42
/bin/df -g Filesystem 1G-blocks Used Available Capacity Mounted on /dev/disk1s1 36 15 8 66% /Volumes/HighSierra /dev/disk1s5 36 11 8 58% /Volumes/Photoso