Sorting DU results
A quick 'one-liner' to sort the results of a du by size.
from: http://ubuntuforums.org/showthread.php?t=885344
sudo du -hx --max-depth=1 / | perl -e '%byte_order = ( G => 0, M => 1, K => 2 ); print map { $_->[0] } sort { $byte_order{$a->[1]} <=> $byte_order{$b->[1]} || $b->[2] <=> $a->[2] } map { [ $_, /([MGK])/, /(\d+)/ ] } <>'
3 comments:
Thank you for sharing that link. Helped me out a lot.
Thanks for posting the details,its really a good information
ap ssc results 2017
Thanks for sharing , very informative and presented well , keep updating morered hat linux training centers in chennai|red hat linux training institute in chennai|red hat training institutes in chennai|linux courses in chennai|linux classes in chennai|linux certification centers in chennai
Post a Comment