Skip to Content
gnux

-s, --summarize

Display only a total for each argument.

An option of dux.

Usage

dux -s [FILE]...
dux --summarize [FILE]...

Details

ShortLongValueDefaultMeaning
-s--summarizenonedisplay only a total for each argument

Examples

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

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

Help in the terminal

gnux help dux --summarize

On this page