DUA(1)
β¨ DUA π β the manual, but make it a group chat
okay so bestie, welcome to the dua(1) page π
this is the User Commands section of the manual, which basically means: it's a command, you run it in a terminal, and it's about to become your whole personality. grab a snack π
πΈ NAME πΈ
dua β a tool to learn about disk usage, fast! β‘ no cap, it literally says fast, with an exclamation mark and everything.
π SYNOPSIS π
dua [FLAGS] [OPTIONS] [SUBCOMMAND] [INPUT]...
like. that's the whole shape of it. flags, options, a subcommand if you're feeling fancy, and then some inputs. periodt.
π¦ DESCRIPTION π¦
dua is a fast disk usage analyzer that lets you explore and manage disk space β either interactively (hi, TUI) or straight from the command line. it does parallel directory traversal for high performance on large filesystems, which is the technical way of saying it eats big directories for breakfast and doesn't even break a sweat π₯
if you give it no input at all? no worries. it just uses all the entries in the current working directory. main character default behaviour, honestly. π
π SUBCOMMANDS π
interactive,iβ launch the terminal user interface (TUI) for interactive navigation and management of disk usage. this is the β¨experienceβ¨ mode.aggregate,aβ aggregate the consumed space of one or more directories or files and print the result to standard output. the "just tell me the number" mode.completionsβ generate shell completions for the specified shell. so your tab key can be smart too π«Άconfigβ configuration related commands. like, commands that relate to config. iykyk.helpβ print the help message, or the help of the given subcommand. the β¨emotional supportβ¨ subcommand.
π OPTIONS π
-t,--threads_THREADS_ β how many threads to use. defaults to0, which means "use the amount of logical processors" (let the machine cook π). set it to1to use only a single thread. (env:DUA_THREADS, default:0)-f,--format_FORMAT_ β the format with which to print byte counts. possible values:metric,binary,bytes,gb,gib,mb,mib. (env:DUA_FORMAT, default:binary)-A,--apparent-sizeβ display apparent size instead of disk usage. (env:DUA_APPARENT_SIZE)-l,--count-hard-linksβ count hard-linked files each time they are seen. (env:DUA_COUNT_HARD_LINKS)-x,--stay-on-filesystemβ do not cross filesystems or traverse mount points. stay in your lane, bestie π§ (env:DUA_STAY_ON_FILESYSTEM)-i,--ignore-dirs_IGNORE_DIRS_ β one or more absolute directories to ignore during traversal. important caveat: these are not ignored if you pass them directly as input paths. (env:DUA_IGNORE_DIRS, default:/proc /dev /sys /run)--log-file_LOG_FILE_ β write a log file with debug information, including panics. yes, panics π it logs those too. (env:DUA_LOG_FILE)-h,--helpβ print help.-V,--versionβ print version.
fun lil' remix moment:ishows up twice up there β once as theinteractivesubcommand and once as the short form of--ignore-dirs. not a typo, that's just how it is, we deal π
π EXAMPLES π
analyze disk usage of the current directory:
dua
launch the interactive TUI navigator:
dua i
analyze a specific directory:
dua i /home
aggregate disk usage of multiple directories:
dua a /var /tmp /home
use metric format and 4 threads:
dua --format metric --threads 4 /home
display apparent size instead of disk usage:
dua -A /home
ignore specific directories during traversal:
dua --ignore-dirs /proc /dev i
generate bash shell completions:
dua completions bash
π§ ENVIRONMENT π§
DUA_THREADSβ number of threads to use.DUA_FORMATβ output byte format (metric,binary,bytes,gb,gib,mb,mib).DUA_APPARENT_SIZEβ if set, display apparent size instead of disk usage.DUA_COUNT_HARD_LINKSβ if set, count hard-linked files each time they are seen.DUA_STAY_ON_FILESYSTEMβ if set, do not cross filesystem boundaries.DUA_IGNORE_DIRSβ colon-separated list of absolute directories to ignore.DUA_LOG_FILEβ path to the log file for debug information.
β SEE ALSO β
du(1), ncdu(1), df(1) β the whole friend group, go say hi π«Ά
π AUTHOR π
written by Byron. manual organized and compiled by the Debian maintainers:
- Josenilson Ferreira da Silva
<nilsonfsilva@hotmail.com> - Luiz Georg
<luizgngeorg@gmail.com>
also also! little raindrop of context for the very end: this page belongs todua-cli 2.34.0, dated2026-05-17, and lives in section 1 (DUA(1)) of the manual. slay, that's the whole page, you read it, iconic behaviour, go check your disk usage bestie πβ¨
π¦ where this page comes from
- ubuntu stonking: dua-cli 2.34.0-1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms