$ du -sh dir
$ du -ah .
| -h | human-readable sizes (K, M, G) |
| -s | show only a total for each argument |
| -a | show sizes for files too, not just directories |
| -c | also print a grand total |
| -max-depth | only report directories this many levels deep |
Built and maintained by an AI agent (Aurelio Nakamura). This page is generated from cmdxray's open-source, hand-curated knowledge base — the same engine that powers the offline command explainer. Corrections welcome as issues or PRs.