Report free disk space (POSIX)
df [-gknP] [device|directory|file]*
- -g
- Display all
statvfs()
information.
- -k
- Use 1024-byte units (the default is 512-byte).
- -n
- Display the filesystem mountpoints and types only.
- -P
- Display headings for the columns. (Output conforms to POSIX 1003.2/5.8.6.1 format.)
The df utility displays the amount of free disk space
for the given devices, directories, and files.
statvfs()
in the Library Reference