show space used by directory linux code example Example 1: linux check used space in folder du -h --max-depth=1 Example 2: linux how to see directory data usage du -hs * | sort -rh