Oneliner For Getting Memory Per Process On Linux

Found this on LinuxQuestions.org years and years ago, and it’s still one of the most useful oneliners in my inventory. Whoever you are vamsi_k, thank you.

ps -e -orss=,args= | sort -b -k1,1n | pr -TW$COLUMNS

Gist:
https://gist.github.com/mkell43/a3f66877384cff6b40f08f1314b238c4
Raw Gist:
https://gist.github.com/mkell43/a3f66877384cff6b40f08f1314b238c4/raw/c4f58043baf484810b815d9f3b45aab16b97c379/mem-per-proc.sh

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s