LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Really newbie question using top (https://www.linuxquestions.org/questions/linux-newbie-8/really-newbie-question-using-top-4175429595/)

paulwoodman 09-29-2012 08:37 AM

Really newbie question using top
 
I know you can sort by top memory usage in PS command but how can i sort using TOP the 5 top memory processes? I have googled with no joy :(

pan64 09-29-2012 08:51 AM

you would rather read the man page of top

TobiSGD 09-29-2012 08:51 AM

Have a look at
Code:

man top
You won't get a more extensive explanation.

paulwoodman 09-29-2012 09:31 AM

So # top -n then press n 5?

JaseP 09-29-2012 11:11 AM

Are you just trying to view while running top or are you trying to export top output?

paulwoodman 09-29-2012 11:22 AM

while i'm running top

Habitual 09-29-2012 11:24 AM

Quote:

Originally Posted by paulwoodman (Post 4792522)
So # top -n then press n 5?

That will do it.

paulwoodman 09-29-2012 11:25 AM

Thanks all

Habitual 09-29-2012 02:07 PM

Quote:

Originally Posted by Habitual (Post 4792587)
That will do it.

I was incorrect.
top > then n > then 5

Sorry about that.


All times are GMT -5. The time now is 02:50 AM.