DF(1)
๐พ df โ the file system space check ๐พ
okay bestie, gather round, because df is literally the "how much room do I have left" of Unix and you're gonna be obsessed. It's from GNU coreutils, and yes, the manual name is df โ short for disk free, main character energy fr fr.
โจ SYNOPSIS โจ
df [OPTION]... [FILE]...
๐ธ DESCRIPTION ๐ธ
So this page is documenting the GNU version of df, just so we're clear. What it does is show you the amount of space available on the file system containing each file name argument you hand it. Every single one. ๐
And if you give it no file name at all? It just shows you the space available on all currently mounted file systems. Like, the whole vibe check of your disk situation.
Space comes out in 1K blocks by default โ unless the environment variable POSIXLY_CORRECT is set, in which case it's 512-byte blocks instead. iykyk. โจ
Now here's a lil nuance that's lowkey important:
- If an argument is the absolute file name of a device node containing a mounted file system,
dfshows the space available on that file system rather than on the file system containing the device node. Sneaky but correct. ๐ฆ
๐ซถ Heads up: this version of df cannot show the space available on unmounted file systems. Why? Because on most kinds of systems, doing so requires non-portable, intimate knowledge of file system structures. Not it. Not the vibe. It's just not happening. ๐ญ
๐ OPTIONS ๐
Show information about the file system on which each FILE resides, or all file systems by default. ๐๏ธ
Mandatory arguments to long options are mandatory for short options too. (Yes, the short ones get the same treatment. No shortcuts on the shortcuts. ๐)
-a,--allโ include pseudo, duplicate, inaccessible file systems. the whole chaotic friend group ๐ซถ-B,--block-size=SIZEโ scale sizes bySIZEbefore printing them; see SIZE format below; E.g.,'-BM'prints sizes in units of1,048,576bytes-h,--human-readableโ print sizes in powers of1024(e.g.,1023M) ๐ธ-H,--siโ print sizes in powers of1000(e.g.,1.1G) โจ-i,--inodesโ list inode information instead of block usage ๐-kโ like--block-size=1K-l,--localโ limit listing to local file systems ๐--no-syncโ do not invokesyncbefore getting usage info (default)--output[=FIELD_LIST]โ use the output format defined byFIELD_LIST, or print all fields ifFIELD_LISTis omitted ๐-P,--portabilityโ use the POSIX output format--syncโ invokesyncbefore getting usage info--totalโ elide all entries insignificant to available space, and produce a grand total ๐งฎ-t,--type=TYPEโ limit listing to file systems of typeTYPE-T,--print-typeโ print file system type ๐ท๏ธ-x,--exclude-type=TYPEโ limit listing to file systems not of typeTYPE-vโ (ignored) ๐ like it's literally not doing anything bestie--helpโ display this help and exit--versionโ output version information and exit
๐ the units situation ๐
Display values are in units of the first available SIZE from --block-size, and the DF_BLOCK_SIZE, BLOCK_SIZE and BLOCKSIZE environment variables. Otherwise, units default to 1024 bytes (or 512 if POSIXLY_CORRECT is set). Order matters, first one wins, no cap. โจ
The SIZE argument is an integer and an optional unit (example: 10K is 10*1024). Units are K,M,G,T,P,E,Z,Y,R,Q (powers of 1024) or KB,MB,... (powers of 1000). Binary prefixes can be used, too: KiB=K, MiB=M, and so on. ๐
๐ฆ FIELD_LIST ๐ฆ
FIELD_LIST is a comma-separated list of columns to be included. Valid field names are: 'source', 'fstype', 'itotal', 'iused', 'iavail', 'ipcent', 'size', 'used', 'avail', 'pcent', 'file' and 'target' (see info page). ๐
๐ AUTHOR ๐
Written by Torbjorn Granlund, David MacKenzie, and Paul Eggert. absolute legends, we stan. ๐
๐ญ REPORTING BUGS ๐ญ
- Report bugs to: <bug-coreutils@gnu.org>.
- Report any translation bugs to: <https://translationproject.org/team/>.
- GNU coreutils home page: <https://www.gnu.org/software/coreutils/>
- General help using GNU software: <https://www.gnu.org/gethelp/>
๐ COPYRIGHT ๐
Copyright ยฉ 2026 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
โ ๏ธ There is NO WARRANTY, to the extent permitted by law. fr fr, none. ๐
๐ SEE ALSO ๐
- Full documentation <https://www.gnu.org/software/coreutils/df>
- or available locally via:
info '(coreutils) df invocation'
and that's the whole page, bestie โ GNU coreutils 9.12, dated September 2026, signing off ๐โจ๐ฆ
๐ฆ where this page comes from
- arch rolling: coreutils 9.12-2 ยท GPL-3.0-or-later AND GFDL-1.3-or-later
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms