LinuxCommandLibrary

dua

Dua (Disk Usage Analyzer) is a tool to conveniently learn about the usage of disk space of a given directory.

TLDR

Analyze specific directory

$ dua [path/to/directory]
copy


Display apparent size instead of disk usage
$ dua --apparent-size
copy


Count hard-linked files each time they are seen
$ dua --count-hard-links
copy


Aggregate the consumed space of one or more directories or files
$ dua aggregate
copy


Launch the terminal user interface
$ dua interactive
copy


Format printing byte counts
$ dua --format [metric|binary|bytes|GB|GiB|MB|MiB]
copy


Use a specific number of threads (defaults to the process number of threads)
$ dua --threads [count]
copy

Copied to clipboard