Sort Unix processes on ps by highest memory usage

just a snippet, –sort is not good for me..try

ps -eo pmem,pcpu,rss,vsize,args | sort -k 1 -r | more

Recommended posts:

  • T Crever

    how about
    ps -eo pmem,pcpu,rss,vsize,args | sort -k 1 -r -n | more

  • yonit

    Hi, this one helped me out,
    apperantly pslist wasnt installed on the machine in question.

  • Sascha Ziemann

    This will keep the headline in the first line:
    ps -eo pmem,pcpu,rss,vsize,args | { head -1 ; sort -k 1 -r -n ; } | less

  • Frank

    excellent!
    Thanks,

  • Pingback: Useful Linux commands :: GadElKareem