LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-29-2012, 09:37 AM   #1
paulwoodman
LQ Newbie
 
Registered: Feb 2012
Location: London, UK
Distribution: Slackware
Posts: 17

Rep: Reputation: Disabled
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
 
Old 09-29-2012, 09:51 AM   #2
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 8,104

Rep: Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267
you would rather read the man page of top
 
Old 09-29-2012, 09:51 AM   #3
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,130
Blog Entries: 2

Rep: Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825
Have a look at
Code:
man top
You won't get a more extensive explanation.
 
Old 09-29-2012, 10:31 AM   #4
paulwoodman
LQ Newbie
 
Registered: Feb 2012
Location: London, UK
Distribution: Slackware
Posts: 17

Original Poster
Rep: Reputation: Disabled
So # top -n then press n 5?
 
Old 09-29-2012, 12:11 PM   #5
JaseP
Senior Member
 
Registered: Jun 2002
Location: Eastern PA, USA
Distribution: K/Ubuntu 12.04/14.04, Scientific Linux 6.3/6.4, Android-x86, Pretty much all distros at one point...
Posts: 1,791

Rep: Reputation: 157Reputation: 157
Are you just trying to view while running top or are you trying to export top output?
 
Old 09-29-2012, 12:22 PM   #6
paulwoodman
LQ Newbie
 
Registered: Feb 2012
Location: London, UK
Distribution: Slackware
Posts: 17

Original Poster
Rep: Reputation: Disabled
while i'm running top
 
Old 09-29-2012, 12:24 PM   #7
Habitual
LQ Addict
 
Registered: Jan 2011
Location: Youngstown, Ohio
Distribution: LM17.1/Xfce4.11.8
Posts: 7,158
Blog Entries: 10

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
Quote:
Originally Posted by paulwoodman View Post
So # top -n then press n 5?
That will do it.
 
Old 09-29-2012, 12:25 PM   #8
paulwoodman
LQ Newbie
 
Registered: Feb 2012
Location: London, UK
Distribution: Slackware
Posts: 17

Original Poster
Rep: Reputation: Disabled
Thanks all
 
Old 09-29-2012, 03:07 PM   #9
Habitual
LQ Addict
 
Registered: Jan 2011
Location: Youngstown, Ohio
Distribution: LM17.1/Xfce4.11.8
Posts: 7,158
Blog Entries: 10

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
Quote:
Originally Posted by Habitual View Post
That will do it.
I was incorrect.
top > then n > then 5

Sorry about that.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Question about top kdelover Linux - Newbie 3 09-02-2011 02:59 AM
Question about TOP ryanlum Linux - Software 2 05-28-2008 12:14 AM
Bloddy Newbie Question: How to install Bash + top ? fluppi AIX 3 12-16-2005 11:00 AM


All times are GMT -5. The time now is 12:48 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration