file folder with size linux code example Example 1: check folder sizes linux du -h --max-depth=1 Example 2: size folder command line du -h /path/to/folder/