check how much storage a folder is using linux code example
Example 1: how to get the size of directory in linux
du -sh /var
Example 2: Get the size of all the directories in current directory in linux
du -h --max-depth=1
du -sh /var
du -h --max-depth=1