1832516 Members
5129 Online
110043 Solutions
New Discussion

Top order by memory?

 
SOLVED
Go to solution
Carme Torca
Super Advisor

Top order by memory?

Hi,

Is it possible to order by memory one top?

Thanks a lot of!
Carmen.
Users are not too bad ;-)
3 REPLIES 3
Robert-Jan Goossens
Honored Contributor
Solution

Re: Top order by memory?

Hi Carmen,

Dont think you can with top, nut you can with ps.

# UNIX95= ps -e -o ruser,vsz,pid,args | sort -rnk2 | more

Regards,
Robert-Jan
Eric SAUBIGNAC
Honored Contributor

Re: Top order by memory?

Bonjour,

I am too lazy to make a search in forums ;-)

Don't know with "top", but try "ps" this way :

UNIX95= ps -e -o vsz -o args | sort -n

Eric