Find the total size of a folder from the command line — by Marcel Stimberg on Ask Ubuntu
du -hs gives a single human-readable total for a folder. The answer explains the -h (human-readable) and -s (summary) flags and how to sort folder sizes.
Quick steps
- du -hs /path/to/folder
Paraphrased from the source. Menus can differ by version, so check the original for full details.
Source: Find the total size of a folder from the command line by Marcel Stimberg on Ask Ubuntu. Licence: CC BY-SA (Stack Exchange; version depends on post date).
- Source reviewed
- 2026-11-02
- Link checked
- Not yet
- Tested hands-on
- Not by Oddbyte.Me