Skip to content

Instantly share code, notes, and snippets.

@draev
Created November 10, 2018 17:45
Show Gist options
  • Save draev/2b7b50d407b8f245f5e4f2ffc85d5b56 to your computer and use it in GitHub Desktop.
Save draev/2b7b50d407b8f245f5e4f2ffc85d5b56 to your computer and use it in GitHub Desktop.
#!/bin/bash
ps -eo rss,pid,user,command -m | 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