News for hackers. Stuff that matters.
Re:Where has my disk space gone? Flame graphs for file systems by davejamesmiller on Monday February 06, 2017 @08:38AM (#13579259)
It can also be achieved with some Perl:

    du -h | perl -e 'sub h{%h=(K=>10,M=>20,G=>30);($n,$u)=shift=~/([0-9.]+)(\D)/; return $n*2**$h{$u}}print sort{h($b)<=>h($a)}<>;'
Source: http://serverfault.com/a/62422/76878

There are no comments on this comment yet.