Skip to content

Find the total size of a folder from the command line — by Marcel Stimberg on Ask Ubuntu

beginnerforumCC BY-SA (Stack Exchange; version depends on post date)

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

  1. du -hs /path/to/folder

Paraphrased from the source. Menus can differ by version, so check the original for full details.

Read the full thread on askubuntu.com

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

dudisk usagefolder size

More in Community Answers (Stack Exchange)