linux see how big a folder is code example
Example 1: command to check size of folder in linux
du -lh --max-depth=1 --block-size=M | sort -nr
Example 2: check folder size in linux terminal
du -sh /home/user/
Example 3: Get the size of all the directories in current directory in linux
du -h --max-depth=1