Skip to Content
gnux

-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

ShortLongValueDefaultMeaning
-h--human-readablenoneprint 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 11
Output
48G	/home/alice
21G	/home/alice/Videos
12G	/home/alice/.cache
6.3G	/home/alice/projects

Show the total size of a project, in human-readable units

dux -sh ~/projects/website
Output
1.2G	/home/alice/projects/website

See how much node_modules folders take across all your projects

dux -sch ~/projects/*/node_modules
Output
412M	/home/alice/projects/api/node_modules
388M	/home/alice/projects/web/node_modules
800M	total

Measure a repository without its .git history

dux -sh --exclude=.git ~/projects/website

Find files over 100 MB to clean up

dux -a -t 100M -h ~/Downloads

Spot a sparse VM disk image: it takes far less space than its size

dux -h vm.qcow2 && dux -h --apparent-size vm.qcow2
Output
2.1G	vm.qcow2
40G	vm.qcow2

See which log directories changed most recently

dux -sh --time /var/log/*
Output
1.3M	2026-10-12 09:41	/var/log/apt
96M	2026-10-12 10:02	/var/log/journal

Measure 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

On this page