4 ms·
i have an alias that shows each folder in the current directory humanized... might have been slightly modified from one where i got it to work on macos. duf ==
by weaksauce 6y ago
i have an alias that shows each folder in the current directory humanized... might have been slightly modified from one where i got it to work on macos. duf == disk utilization folders. a caveat is that it can be a bit slow if there are a lot of files/subdirectories.
alias duf='du -sk * | sort -n | perl -ne '\''($s,$f)=split(m{\t});for (qw(K M G)) {if($s<1024) {printf("%.1f",$s);print "$_\t$f"; last};$s=$s/1024}'\'