Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

8
  • 3
    Where -s means summarise, display the total and -h means human readable
    – wranvaud
    Commented Oct 30, 2017 at 12:53
  • 10
    Sort folders by size: du -s */ | sort -n. Commented Nov 1, 2018 at 16:28
  • 4
    @AntonTarasenko: Sort human readable sizes Commented Nov 1, 2018 at 20:58
  • 2
    @AntonTarasenko: shopt -s dotglob doc Commented Nov 4, 2018 at 15:25
  • 5
    -n does not sorts properly use du -sh */ | sort -hr instead Commented Feb 14, 2020 at 14:19