linux file size stats of each folder code example Example 1: check folder sizes linux du -h --max-depth=1 Example 2: linux command to list directory size sudo du -sh /var