2 Comments

liquidsunshine Said,
April 19th, 2008 @10:04 am  
Just a note, it doesn’t work with the -h (human-readable units) flag if the file sizes are in different units (such as a 16 GB folder and a 599 MB folder) — it only sorts by the raw number, not taking into account the units (so the 599 MB folder would come before the 16 GB folder). If you remove the -h flag, it works fine. Cool trick though.
mygif
Peter Said,
April 23rd, 2008 @10:49 am  
I believe this will do the same:

ls -1hSs /home/adam |head

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