Skip to content

Latest commit

 

History

History
12 lines (8 loc) · 301 Bytes

sorting-directories-by-size.md

File metadata and controls

12 lines (8 loc) · 301 Bytes

Sorting directories by size

Combining a couple command line utilities, we can easily get the size of directories (or files if so desired) and sort them:

$ du -sh */ | sort -hr

The trailing slash is important.

source