command size directory linux code example Example 1: linux how to see directory data usage du -hs * | sort -rh Example 2: check directory size du -sh /home/george