linux check size folder code example
Example 1: linux how to know whhich directory used more soace
$ du -h --max-depth=1 | sort -hr
Example 2: Get the size of all the directories in current directory in linux
du -h --max-depth=1
$ du -h --max-depth=1 | sort -hr
du -h --max-depth=1