LinuxQuestions.org
Help answer threads with 0 replies.
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
 
LinkBack Search this Thread
Old 01-14-2009, 04:48 AM   #1
dourk
LQ Newbie
 
Registered: Jul 2006
Posts: 21

Rep: Reputation: 0
top: order pids by memory instead of CPU usage


Hello

The title says it all: Command top displays the pids (tasks) by order of CPU usage. Could I make it order them by memory usage?

Thank you
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 01-14-2009, 04:53 AM   #2
eco
Member
 
Registered: May 2006
Location: BE
Distribution: Debian/Gentoo
Posts: 410

Rep: Reputation: 48
I think it depends on the distro you are using.

type
Code:
$ top
then in top, type '?'
This will tell you how to do it.

It depends on distributions.

Debian uses '<' and '>'
Redhat uses 'o' and 'O'
...
 
Old 01-14-2009, 04:55 AM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 10,459

Rep: Reputation: 623Reputation: 623Reputation: 623Reputation: 623Reputation: 623Reputation: 623
You can sort by any of the fields - see the manpage, or enter a "?" while in top itself.
 
Old 02-22-2010, 09:40 AM   #4
abel.bolanos
LQ Newbie
 
Registered: Feb 2010
Location: Cuba
Distribution: Ubuntu, Debian, CentOS
Posts: 1

Rep: Reputation: 2
Thumbs up Use this

Call top
then inside make Shift+F
now is list by %CPU
then press 'n' for order by memory
 
2 members found this post helpful.
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
CPU usage from top jr8rdt Linux - Newbie 10 08-17-2011 06:46 AM
getting realtime info on memory usage-cpu and harddrive usage steering Linux - Newbie 5 03-03-2005 08:43 PM
Top CPU usage explanation penguinco Fedora 3 11-30-2004 01:01 PM
how to determine cpu usage, memory usage, I/O usage by a particular user logged on li rags2k Programming 4 08-21-2004 04:45 AM
Controlling CPU usage & memory usage Saravana babu Linux - Software 0 02-18-2004 05:55 AM


All times are GMT -5. The time now is 11:20 PM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration