get all fodler size in drectory 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