LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   how to list folder size in descending order ? (https://www.linuxquestions.org/questions/linux-server-73/how-to-list-folder-size-in-descending-order-787889/)

Winanjaya 02-08-2010 08:20 PM

how to list folder size in descending order ?
 
Dear all
how to list folder size in descending order ?

please advise

thanks

neonsignal 02-08-2010 09:27 PM

You could try (this will include individual files as well):
Code:

du -s * | sort -rg
If you need to do this from a GUI, try something like baobab in gnome-utils.

chrism01 02-09-2010 12:32 AM

du -sk <wherever>|sort -rnk1


All times are GMT -5. The time now is 07:21 PM.