Skip to content

Instantly share code, notes, and snippets.

@Francois-Francois
Created August 16, 2016 06:19
Show Gist options
  • Save Francois-Francois/0775b21c8b70e11cc75ee804d853eda3 to your computer and use it in GitHub Desktop.
Save Francois-Francois/0775b21c8b70e11cc75ee804d853eda3 to your computer and use it in GitHub Desktop.
List Files in Human Readable Format
du -sk -- * | sort -n | perl -pe '@SI=qw(K M G T P); s:^(\d+?)((\d\d\d)*)\s:$1." ".$SI[((length $2)/3)]."\t":e'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment