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, df shows 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 by SIZE before printing them; see 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 ๐Ÿ”
  • -k โ€” like --block-size=1K
  • -l, --local โ€” limit listing to local file systems ๐Ÿ 
  • --no-sync โ€” do not invoke sync before getting usage info (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 โ€” invoke sync before 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 type TYPE
  • -T, --print-type โ€” print file system type ๐Ÿท๏ธ
  • -x, --exclude-type=TYPE โ€” limit listing to file systems not of type TYPE
  • -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 ๐Ÿ˜ญ


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 ๐ŸŒŸ


and that's the whole page, bestie โ€” GNU coreutils 9.12, dated September 2026, signing off ๐Ÿ’–โœจ๐Ÿฆ‹

๐Ÿ“ฆ where this page comes from