DU(1)
π DU(1) β the du glow-up π
okay bestie, welcome to DU(1) from the User Commands girlies β¨ this is the manual page for du, and no cap, it's about to become your new main character.
πΈ NAME πΈ
du β estimate file space usage π
like⦠how much room is this actually taking up. the vibe check for your disk, fr fr.
β¨ SYNOPSIS β¨
du [OPTION]... [FILE]...
du [OPTION]... --files0-from=F
π¦ DESCRIPTION π¦
Summarize device usage of the set of *FILE*s, recursively for directories. π«Ά
Mandatory arguments to long options are mandatory for short options too. (yes, that's the rule, that's just how it is)
π the options, queen by queen
-0,--nullβ end each output line with NUL, not newline. zero drama, literally.-a,--allβ write counts for all files, not just directories. everybody gets counted bestie.-A,--apparent-sizeβ print apparent sizes rather than device usage. the apparent size is usually smaller, but it can be larger too, thanks to holes in ('sparse') files, internal fragmentation, indirect blocks, etc. it's giving deceptive, not gonna lie.-B,--block-size=SIZEβ scale sizes by SIZE before printing them. See SIZE format below. E.g.,-BMprints sizes in units of 1,048,576 bytes π₯-b,--bytesβ equivalent to--apparent-size --block-size=1. two moods, one flag.-c,--totalβ produce a grand total. the finale. the sum. iconic.-D,--dereference-argsβ dereference only symlinks that are listed on the command line. picky, and honestly? respect.-d,--max-depth=Nβ print the total for a directory (or file, with--all) only if it is N or fewer levels below the command line argument.--max-depth=0is the same as--summarize. yes we said it.--files0-from=Fβ summarize device usage of the NUL-terminated file names specified in file F. if F is-, read names from standard input. π-Hβ equivalent to--dereference-args(-D).-h,--human-readableβ print sizes in human readable format (e.g.,1K234M2G). yes bestie, words we understand π--inodesβ list inode usage information instead of block usage. inode girlies rise up π-kβ like--block-size=1K.-L,--dereferenceβ dereference all symbolic links. all of them. no holding back.-l,--count-linksβ count sizes many times if hard linked. messy but valid.-mβ like--block-size=1M.-P,--no-dereferenceβ don't follow any symbolic links. this is the default, so it's giving calm and unbothered π§-S,--separate-dirsβ for directories do not include size of subdirectories. keeps it separate, boundaries slay.--siβ like-h, but use powers of 1000 not 1024. metric moment.-s,--summarizeβ display only a total for each argument. short and sweet.-t,--threshold=SIZEβ exclude entries smaller than SIZE if positive, or entries greater than SIZE if negative. gatekeeping, but make it math.--timeβ show time of the last modification of any file in the directory, or any of its subdirectories.--time=WORDβ show time as WORD instead of modification time:atime,access,use,ctimeorstatus.--time-style=STYLEβ time/date format with--time; see TIME_STYLE below.-X,--exclude-from=FILEβ exclude files that match any pattern in FILE.--exclude=PATTERNβ exclude files that match PATTERN.-x,--one-file-systemβ skip directories on different file systems. stay in your lane, respectfully.--helpβ display this help and exit π--versionβ output version information and exit.
Display values are in units of the first available SIZE from --block-size, and the DU_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 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.
The --time-style STYLE argument can be full-iso, long-iso, iso, or +FORMAT. FORMAT is interpreted like in date(1). Also the TIME_STYLE environment variable sets the default style to use.
π PATTERNS π
PATTERN is a shell pattern (not a regular expression, bestie, they're different, iykyk). The pattern ? matches any one character, whereas * matches any string (composed of zero, one or multiple characters). For example, *.o will match any files whose names end in .o. Therefore, the command
du --exclude='*.o'
will skip all files and subdirectories ending in .o (including the file .o itself). honest work π
π AUTHOR π
Written by Torbjorn Granlund, David MacKenzie, Paul Eggert, and Jim Meyering. legends, all four 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/
β SEE ALSO β
- Full documentation
https://www.gnu.org/software/coreutils/du - or available locally via:
info '(coreutils) du invocation'
no cap, that's the whole page. go check your disk usage, you gorgeous thing π«Ά
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. π
and that's a wrap on GNU coreutils 9.10, August 2026, DU(1) β bye bestie, slay responsibly β¨ππ
π¦ 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