check the directory which will take large size code example
Example 1: check folder sizes linux
du -h --max-depth=1
Example 2: find largest folders centos
# du -Sh | sort -rh | head -5
du -h --max-depth=1
# du -Sh | sort -rh | head -5