how to check which folder is taking more space in linux code example
Example 1: linux how to know whhich directory used more soace
$ du -h --max-depth=1 | sort -hr
Example 2: find largest folders centos
# du -Sh | sort -rh | head -5
$ du -h --max-depth=1 | sort -hr
# du -Sh | sort -rh | head -5