command to check the size of a folder in linux code example Example 1: linux command to list directory size sudo du -sh /var Example 2: check directory size du -sh /home/george