Easiest way to sort subdirectory sizes:
du -h -d 1 |sort -k1 -rh
Where du -h -d 1 is used to show human readable format (-h) and only 1st level of subdirectory (-d 1).
Easiest way to sort subdirectory sizes:
du -h -d 1 |sort -k1 -rh
Where du -h -d 1 is used to show human readable format (-h) and only 1st level of subdirectory (-d 1).