-h, --human-readable
Print sizes in human readable format (e.g., 1K 234M 2G).
An option of dux.
Usage
dux -h [FILE]...
dux --human-readable [FILE]...Details
| Short | Long | Value | Default | Meaning |
|---|---|---|---|---|
-h | --human-readable | none | print sizes in human readable format (e.g., 1K 234M 2G) |
Examples
Your home folder grew by 20 GB: see each folder's share of it as a bar, one level deep
dux -h -d 1 ~Your disk is nearly full: list the 10 biggest directories in your home, largest first
dux -h -d 1 ~ | sortx -h -r | headx -n 1148G /home/alice
21G /home/alice/Videos
12G /home/alice/.cache
6.3G /home/alice/projectsShow the total size of a project, in human-readable units
dux -sh ~/projects/website1.2G /home/alice/projects/websiteSee how much node_modules folders take across all your projects
dux -sch ~/projects/*/node_modules412M /home/alice/projects/api/node_modules
388M /home/alice/projects/web/node_modules
800M totalMeasure a repository without its .git history
dux -sh --exclude=.git ~/projects/websiteFind files over 100 MB to clean up
dux -a -t 100M -h ~/DownloadsSpot a sparse VM disk image: it takes far less space than its size
dux -h vm.qcow2 && dux -h --apparent-size vm.qcow22.1G vm.qcow2
40G vm.qcow2See which log directories changed most recently
dux -sh --time /var/log/*1.3M 2026-10-12 09:41 /var/log/apt
96M 2026-10-12 10:02 /var/log/journalMeasure a list of paths produced by another program
find . -name '*.log' -print0 | dux -ch --files0-from=-Help in the terminal
gnux help dux --human-readable