Show me the size of all the things. The bastard child of [du](http://en.wikipedia.org/wiki/Du_(Unix)) and [df](http://en.wikipedia.org/wiki/Df_(Unix)).

alias duf='du -sk * | sort -nr | 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}'\'''

file and folder size alias. aka diskspace



Published

02 August 2012

Category

hacking

Tags