Skip to content

Instantly share code, notes, and snippets.

@gyaresu
Forked from timf/gist:979708
Created August 2, 2012 04:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gyaresu/3233706 to your computer and use it in GitHub Desktop.
Save gyaresu/3233706 to your computer and use it in GitHub Desktop.
diskspace alias
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}'\'''
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment