sort top 5 linux by sub subdirectories size exclude directory code example Example: linux how to know whhich directory used more soace $ du -h --max-depth=1 | sort -hr