Directories, sorted by size

du <DIRECTORY> | sort -nr | sed ‘s/^[0-9]*\t//’ | tr \\n 0 | xargs -0 du -sh

Starting from sed… are the commands that “beautify” the output.

With newer Linux easier and prettier:

du -hs * | sort -rh

Advertisements