DU(1)
π DU(1) β General Commands Manual π
okay bestie, welcome to the du(1) page from the General Commands Manual. She estimates file space usage and she is lowkey iconic for it. Letβs get into it, no cap. π«Ά
πΈ NAME πΈ
du β estimate file space usage. Thatβs the whole name, and she ate. π
π¦ SYNOPSIS π¦
du [OPTION]... [FILE]...
du [OPTION]... --files0-from=F
π DESCRIPTION π
Estimate file space usage. Yep, thatβs the job, and du is doing it. β¨
β¨ OPTIONS β¨
okay so here are all the flags, and I mean all of them. No skipping, bestie. π
--helpβ print help information. Literally the βhelp me understand youβ button. π«Ά-a,--allβ write counts for all files, not just directories. Every file gets counted, not just the directories, slay. π₯-A,--apparent-sizeβ print apparent sizes, rather than disk usage. Note that the apparent size is usually smaller, but it may be larger due to holes in ('sparse') files, internal fragmentation, indirect blocks, and the like. So yeah, itβs giving βsizes are complicated.β π-B,--block-size <SIZE>β scale sizes bySIZEbefore printing them. E.g.,'-BM'prints sizes in units of1,048,576bytes. Peep theSIZEformat below. π-b,--bytesβ equivalent to--apparent-size --block-size=1. Thatβs the whole vibe. β¨-c,--totalβ produce a grand total. A little finale moment, periodt. π-d,--max-depth <N>β print the total for a directory (or file, with--all) only if it isNor fewer levels below the command line argument;--max-depth=0is the same as--summarize. Depth control, bestie. π-h,--human-readableβ print sizes in human readable format (e.g.,1K 234M 2G). So much easier to read, thank goodness. πΈ--inodesβ list inode usage information instead of block usage, like--block-size=1K. Inode era. π¦-kβ like--block-size=1K. Simple, iconic. π-l,--count-linksβ count sizes many times if hard linked. Yep, many times. Not once. Many. π-L,--dereferenceβ follow all symbolic links. All of them. No holding back. π₯-D,--dereference-argsβ follow only symlinks that are listed on the command line. Only the ones on the command line, bestie. π-P,--no-dereferenceβ donβt follow any symbolic links (this is the default). The default is no following, and thatβs that. β¨-mβ like--block-size=1M. Another unit moment. π-0,--nullβ end each output line with0byte rather than newline. Null byte finale, iykyk. π«Ά-S,--separate-dirsβ do not include size of subdirectories. Keep those subdirectory sizes out of it. π-s,--summarizeβ display only a total for each argument. Just the total, nothing extra. π--siβ like-h, but use powers of1000not1024. Metric-ish energy. β-x,--one-file-systemβ skip directories on different file systems. Stay in your lane, filesystem-wise. π¦-t,--threshold <SIZE>β exclude entries smaller thanSIZEif positive, or entries greater thanSIZEif negative. Positive and negative are doing different things, so read carefully, bestie. π-v,--verboseβ verbose mode (option not present in GNU/Coreutils). Sheβs chatty, but only where she exists. π--exclude <PATTERN>β exclude files that matchPATTERN. Bye-bye, matching files. π-X,--exclude-from <FILE>β exclude files that match any pattern inFILE. Pattern list energy. πΈ--files0-from <FILE>β summarize device usage of the NUL-terminated file names specified in fileF; ifFis-, then read names from standard input. NUL-terminated names, and-means stdin. π«Ά--time[=<WORD>...]β show time of the last modification of any file in the directory, or any of its subdirectories. IfWORDis given, show time asWORDinstead of modification time:atime,access,use,ctime,status,birthorcreation. Possible values:atimectimecreation
--time-style <STYLE>β show times using styleSTYLE:full-iso,long-iso,iso,+FORMAT;FORMATis interpreted likedate. Time styling, slay. β°β¨-V,--versionβ print version. Version check complete. π
π EXTRA π
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). Environment variable lore, bestie. π
SIZE is an integer and optional unit (example: 10M is 10*1024*1024). Units are K, M, G, T, P, E, Z, Y (powers of 1024) or KB, MB,... (powers of 1000). Units can be decimal, hexadecimal, octal, binary. Number-format range, periodt. π
PATTERN allows some advanced exclusions. For example, the following syntaxes are supported:
?will match only one character*will match zero or more characters{a,b}will match a or b
Pattern matching is serving advanced-exclusion realness. π¦
π VERSION π
v(uutils coreutils) 0.12.0 β thatβs the version, bestie. π
signed off with v(uutils coreutils) 0.12.0, dated 2026-09-17 β mwah π
π¦ where this page comes from
- arch rolling: uutils-coreutils 0.12.0-1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms