linux folder wise space code example
Example 1: linux how to know whhich directory used more soace
$ du -h --max-depth=1 | sort -hr
Example 2: ubuntu du sort by dir size
du -Sh /path/to/dir | sort -rh | head -20
$ du -h --max-depth=1 | sort -hr
du -Sh /path/to/dir | sort -rh | head -20