linux if folder size code example Example 1: check folder sizes linux du -h --max-depth=1 Example 2: check directory size du -sh /home/george