checking size of a directory in linux code example Example 1: linux check used space in folder du -h --max-depth=1 Example 2: check directory size du -sh /home/george