folder wise disk usage linux code example
Example 1: linux how to know whhich directory used more soace
$ du -h --max-depth=1 | sort -hr
Example 2: shell get size of directory
du -h your_directory
# gives you the size of your target directory.
du -hcs your_directory
# If you want a brief output.