tldr/pages/common/dua.md

33 lines
680 B
Markdown
Raw Normal View History

2020-10-05 16:15:21 +01:00
# dua
> Dua (Disk Usage Analyzer): get the disk space usage of a directory.
2020-10-05 16:15:21 +01:00
> More information: <https://github.com/Byron/dua-cli>.
- Analyze specific directory:
`dua {{path/to/directory}}`
- Display apparent size instead of disk usage:
`dua --apparent-size`
- Count hard-linked files each time they are seen:
`dua --count-hard-links`
2020-10-27 06:31:24 +00:00
- Aggregate the consumed space of one or more directories or files:
2020-10-05 16:15:21 +01:00
`dua aggregate`
- Launch the terminal user interface:
`dua interactive`
- Format printing byte counts:
`dua --format {{metric|binary|bytes|GB|GiB|MB|MiB}}`
- Use a specific number of threads (defaults to the process number of threads):
2020-10-05 16:15:21 +01:00
`dua --threads {{count}}`