linux command to find space occupied by a directory code example
Example 1: linux check used space in folder
du -h --max-depth=1
Example 2: how to get the size of directory in linux
du -sh /var
du -h --max-depth=1
du -sh /var