command to check the directory taking max space code example
Example 1: check folder sizes linux
du -h --max-depth=1
Example 2: see how large a directory is linux
# du -a /home | sort -n -r | head -n 5
du -h --max-depth=1
# du -a /home | sort -n -r | head -n 5