DUT(1)
π DUT β disk usage calculator π
okay so this is dut, a General Commands Manual page (section 1, bestie β the "commands you just type" section) β¨
β¨ NAME β¨
dut β the disk usage calculator. that's it. that's the whole name. iconic behavior honestly π
πΈ SYNOPSIS πΈ
dut [-cClsbphv] [-d depth] [-i indent] [-n rows] [-t threads] [path...]
look at all those little flags. she's got range π
π¦ DESCRIPTION π¦
dut is a multi-threaded disk usage calculator for Linux β and yes she is capable of deduplicating hardlinks, which is lowkey the whole flex π₯
if you invoke it with no argument at all, dut will calculate disk usage for the current working directory. otherwise, dut will do the same thing for all the directories you list in path... π«Ά
π Output Format π
dut shows a summary of all the files reachable from path... in a tree-like format</>. if you specify multiple directories in path..., you'll get a dummy (total) tree node created at the bottom of the output β like a little grand finale node π
the output has two columns:
- the size column</> β shows the total size taken up by this entry
- the βshared spaceβ column</> β tells you how much of that total is taken up by files hardlinked to other places in the filesystem
in the example below, dut displays the disk usage of example as 12 kilobytes, consisting of files 1, 2, and 3. 1 and 2 are indicated by the second column to be hardlinks, because they have a non-zero shared size bestie π and because example's second column is 0, we can assume they're hardlinks of each other, since they're the only hardlinks inside of example. but if they were instead linked to files elsewhere on the filesystem, example's shared size column would show that 8K is shared with other directories instead β¨
$ dut ./example
4.0K 4.0K |- 2
4.0K 0B |- 3
4.0K 4.0K /- 1
12K 0B example
π OPTIONS π
-cβ disable colorized output. same effect as a non-empty value in theNO_COLORenvironmental variable π-Cβ force colorized output. this overrides the environmental variableNO_COLORβ she said color, and she meant it π-lβ don't deduplicate hardlinks when traversing the filesystem. this option causesdutto only show the first column of output π-bβ show sizes in plain bytes instead of human readable format. no moreKs andMs, just raw numbers π-sβ count size of files instead of size on disk π¦-pβ display the full path of files in the tree πΈ-ddepthβ limit the depth of the displayed tree todepthlevels π-iindentationβ specify the number of spaces for each level of indentation in the displayed tree. the default is2β¨-nrowsβ specify the number of rows to show. the default is the terminal height minus 10 π-tthreadsβ number of threads to use for scanning the filesystem. the default is4or the number of available CPUs, whichever is greater (seesched_getaffinity(2)) π₯-hβ display a help message π«Ά-vβ display version information β
π ENVIRONMENT π
if the NO_COLOR environmental variable has a non-empty value, then the output will not include any color β see the -c option, and also https://no-color.org/ π
β EXIT STATUS β
the dut utility exits 0 on success, and >0 if an error occurs. simple as that, no cap π
π§ SEE ALSO π§
du(1), ncdu(1), dust(1), gdu(1) β the whole disk-usage friend group, fr fr π«Ά
ngl this page is from Debian, dated July 13, 2023 β that's the source, the version, and the date all in one, so consider this the cute little sign-off bestie πβ¨π
π¦ where this page comes from
- nixos 26.05: dut 0-unstable-2024-07-31
- nixpkgs unstable: dut 0-unstable-2024-07-31
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms