Sort folders by size
It seems like many people don't know about some new flags for du and sort.
Code: summarize target size
- du --summarize /path/to/target
The --summarize flag shows the total size of target only.
Code: Sort human readable numbers
- sort -h
-h will sort like -n but supports suffixes like 14K.
Code: Sort folder content by size
- du -h --summarize /path/to/target/* | sort -h