I was finding how to do a sort and using ajalkane's commands above you can do: Code: du -sm /opt/ -d 1 | sort -nr this would give you the size in MB of 1 level down in opt of the directories sorted from largest to smallest... You can replace the "1" in the command above if you want to increase the depth or you can take out "-d 1" so it will give you the breakdown of all sub-directories... Edit: You can replace "-sm" with "-sk" to give you the size of directories in KB instead of MB...
du -sm /opt/ -d 1 | sort -nr