Skip to content

Instantly share code, notes, and snippets.

@mitfik
Created April 17, 2012 13:26
Show Gist options
  • Save mitfik/2405962 to your computer and use it in GitHub Desktop.
Save mitfik/2405962 to your computer and use it in GitHub Desktop.
Show memory usage on Linux for human
ps -eo size,pid,user,command --sort -size | awk '{ hr=$1/1024 ; printf("%13.2f Mb ",hr) } { for ( x=4 ; x<=NF ; x++ ) { printf("%s ",$x) } print "" }'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment