2020-10-05 20:45:21 +05:30
|
|
|
# dua
|
|
|
|
|
2024-02-14 17:25:13 -03:00
|
|
|
> Dua (Disk Usage Analyzer): get the disk space usage of a directory.
|
2020-10-05 20:45:21 +05:30
|
|
|
> 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 10:01:24 +03:30
|
|
|
- Aggregate the consumed space of one or more directories or files:
|
2020-10-05 20:45:21 +05:30
|
|
|
|
|
|
|
`dua aggregate`
|
|
|
|
|
|
|
|
- Launch the terminal user interface:
|
|
|
|
|
|
|
|
`dua interactive`
|
|
|
|
|
|
|
|
- Format printing byte counts:
|
|
|
|
|
|
|
|
`dua --format {{metric|binary|bytes|GB|GiB|MB|MiB}}`
|
|
|
|
|
2024-02-09 10:55:36 -03:00
|
|
|
- Use a specific number of threads (defaults to the process number of threads):
|
2020-10-05 20:45:21 +05:30
|
|
|
|
|
|
|
`dua --threads {{count}}`
|