DF(1)
๐พ df โ report file system space usage ๐พ
okay bestie, gather round, because df is literally the main character of "where did all my disk go" and she is here to spill the tea โโจ
โจ NAME โจ
df โ report file system space usage ๐ซถ
๐ธ SYNOPSIS ๐ธ
df [OPTION]... [FILE]...
๐ DESCRIPTION ๐
So this page? It's documenting the GNU version of df, not some random off-brand one, okay? no cap.
df shows you the amount of space available on the file system containing each file name argument. Like, you hand her a path, she tells you how much room is left on the drive that path lives on. iconic behavior.
If you give her no file name at all? She shows the space available on all currently mounted file systems. the whole buffet. ๐
By default, space is shown in 1K blocks โ unless the environment variable POSIXLY_CORRECT is set, in which case 512-byte blocks are used. yes, that one ancient env var is still lurking, she never left ๐
Okay now the fun niche case: if an argument is the absolute file name of a device node containing a mounted file system, df shows the space available on that file system rather than on the file system containing the device node. Sneaky? A little. Correct? Absolutely. ๐
โ ๏ธ Important lowkey sad disclaimer: 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. She's not being difficult, she just refuses to do something unportable. boundaries. ๐
๐ 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 literally, the rule applies both ways, that's the law)
-a,--allโ include pseudo, duplicate, inaccessible file systems. let them all in, no gatekeeping ๐ซถ-B,--block-size=SIZEโ scale sizes by SIZE before printing them; see the SIZE format below; E.g.,'-BM'prints sizes in units of 1,048,576 bytes ๐ข-h,--human-readableโ print sizes in powers of 1024 (e.g.,1023M) ๐ธ-H,--siโ print sizes in powers of 1000 (e.g.,1.1G) ๐-i,--inodesโ list inode information instead of block usage. different metric, same drama ๐ฆ-kโ like--block-size=1Kโญ-l,--localโ limit listing to local file systems. stay local, babe ๐--no-syncโ do not invokesyncbefore getting usage info (this is the default) ๐ด--output[=FIELD_LIST]โ use the output format defined by FIELD_LIST, or print all fields if FIELD_LIST is 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. the receipts, but make it one line ๐ฏ-t,--type=TYPEโ limit listing to file systems of type TYPE ๐ฏ-T,--print-typeโ print file system type ๐ท๏ธ-x,--exclude-type=TYPEโ limit listing to file systems not of type TYPE ๐ซ-vโ (ignored) ๐ she's just standing there. menacingly. doing literally nothing.--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).
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, bestie ๐
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. legends, all three of them ๐ซก
๐ REPORTING BUGS ๐
Report bugs to: bug-coreutils@gnu.org
GNU coreutils home page: <https://www.gnu.org/software/coreutils/>
General help using GNU software: <https://www.gnu.org/gethelp/>
Report any translation bugs to <https://translationproject.org/team/>
(yes please actually report them, they want to know, fr fr ๐)
๐ SEE ALSO ๐
Full documentation <https://www.gnu.org/software/coreutils/df>
or available locally via: info '(coreutils) df invocation'
okay that's the whole thing, you're basically a df scholar now ๐
Packaged by Ubuntu (9.10-1ubuntu2), 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. ๐
this was GNU coreutils 9.10, August 2026 โ mwah, slay, periodt, go check your disk space ๐โจ๐ฆ
๐ฆ where this page comes from
- ubuntu stonking: gnu-coreutils 9.10-1ubuntu2 ยท GPL-3.0-or-later
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms