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