5 Comments

Olivers Said,
May 8th, 2008 @5:27 am  

The answer is:

du -ah / | sort -n -r

Thanks

mygif
Ben P Said,
May 8th, 2008 @9:16 am  

du -a * | sort -rn

mygif
Mahmoud Said,
May 9th, 2008 @6:08 am  

du -a * | sort -rn | tail

du -ah would show the sizes in a human readable format but the sort won’t be accurate.

mygif
May 11th, 2008 @4:35 pm  

find / -printf “%12s %h/%f\n” | sort -gr

mygif
May 11th, 2008 @9:19 pm  

non recursive:

du -s * | sort -n

recursive:

find -ls | sed -r s/’[ ]+’/’ ‘/g | cut -d’ ‘ -f 7- | sort -n

use -r with sort to get biggest files first

mygif

Random Post

Leave Your Comments Below

Please Note: All comments will be hand modified by our authors so any unsuitable comments will be removed and you comments will be appreared after approved