Okay I am trying to find a way to sort the processes by memory usage largest to smallest. I know if I piped the output into a file I could run a sort command or two, but is there a simpler way?
Im not sure if this is what you want
ps -eo pmem,pid,user --sort -pmem
you can run top then type 'M'