Skip to content

Instantly share code, notes, and snippets.

@cupakromer
Forked from csexton/gist:4384589
Created January 3, 2013 17:59
Show Gist options
  • Save cupakromer/4445403 to your computer and use it in GitHub Desktop.
Save cupakromer/4445403 to your computer and use it in GitHub Desktop.
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}'\'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment