Skip to content

Instantly share code, notes, and snippets.

@newmetl
Created July 28, 2011 15:00
Show Gist options
  • Save newmetl/1111699 to your computer and use it in GitHub Desktop.
Save newmetl/1111699 to your computer and use it in GitHub Desktop.
Show human readable RAM usage
ps -eo size,pid,user,command | awk '{ hr=$1/1024 ; printf("%13.6f Mb ",hr) } { for ( x=4 ; x<=NF ; x++ ) { printf("%s ",$x) } print "" }' | sort
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment