How to get the size of linux folders

Find Largest Directories in Linux
du -a /var | sort -n -r | head -n 5


To display the largest folders/files including the sub-directories
du -Sh | sort -rh | head -5

Find Out Top File Sizes Only
find /var/www -type f -exec du -Sh {} + | sort -rh | head -n 5