listing size of directories in linux code example
Example 1: linux command to list directory size
sudo du -sh /var
Example 2: Get the size of all the directories in current directory in linux
du -h --max-depth=1
sudo du -sh /var
du -h --max-depth=1