News for hackers. Stuff that matters.
Re:Where has my disk space gone? Flame graphs for file systems by oneeyedpigeon on Sunday February 05, 2017 @08:10PM (#13575794)
Not here :( What version of sort are you running?
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
Re:Where has my disk space gone? Flame graphs for file systems by e12e on Monday February 06, 2017 @02:03AM (#13577204)
Probably a recent version of GNU sort. AFAIK "sort -h" dates at least as far back as the version shipped with Debian old-stable.
Re:Where has my disk space gone? Flame graphs for file systems by oneeyedpigeon on Monday February 06, 2017 @06:57AM (#13578634)
I'm on macOS 10.12.3, GNU coreutils 5.93, and sort doesn't support the "-h" flag.
Re:Where has my disk space gone? Flame graphs for file systems by justinsaccount on Monday February 06, 2017 @08:33AM (#13579224)
You're using a version of coreutils from over a decade ago.

  coreutils-5.93.tar.bz2	2005-11-06 09:06
Re:Where has my disk space gone? Flame graphs for file systems by james2vegas on Monday February 06, 2017 @09:30PM (#13586461)
set BLOCKSIZE to some power of 1024 when running du