Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
10-12-2003, 11:21 AM
|
#1
|
Member
Registered: Oct 2003
Location: UK/Chinese
Distribution: Slackware9.1
Posts: 55
Rep:
|
How can I use "top" to show all of the processes
747M memory is used but I have closed all the window in RH9. I use top to see what process occur my memory, but the list is too small, only about 10 tasks, and the total processes is 70, how can I list them all and then I want to kill one or two of them which eat my memory too much!
|
|
|
10-12-2003, 11:38 AM
|
#2
|
Senior Member
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032
Rep:
|
I believe the equals character ("=") does this, but I'm a little unsure. Try man top.
hw
|
|
|
10-12-2003, 11:43 AM
|
#3
|
Member
Registered: Oct 2003
Location: UK/Chinese
Distribution: Slackware9.1
Posts: 55
Original Poster
Rep:
|
Mm... top does not accept "=",
and I just can't find the answer by using man top. 
|
|
|
10-12-2003, 11:46 AM
|
#4
|
Senior Member
Registered: Feb 2003
Location: N'rn WI -- USA
Distribution: Kubuntu 8.04, ClarkConnect 4
Posts: 1,142
Rep:
|
In top, you can hit "h" to get a help list of options you can use. Specific'ly, you can use 'M' or 'P' to sort by memory of cpu usage.
|
|
|
10-12-2003, 01:08 PM
|
#5
|
Member
Registered: Oct 2003
Location: UK/Chinese
Distribution: Slackware9.1
Posts: 55
Original Poster
Rep:
|
thanks, ranger_nemo. I have tried M and P, but I actually need top to list all the processes, not just sort.
|
|
|
10-15-2003, 04:20 AM
|
#6
|
LQ Newbie
Registered: Sep 2003
Posts: 1
Rep:
|
try something like
ps -eo vsize,pid,dsiz,tsiz,rssize,comm --sort vsize
|
|
|
10-15-2003, 10:37 AM
|
#7
|
Member
Registered: Oct 2003
Distribution: redhat 9
Posts: 147
Rep:
|
i am not sure abt this (coz i am a newbie to linux )
#ps -aux
i hope this will list all the process , am i write some one correct me ...
|
|
|
10-15-2003, 07:06 PM
|
#8
|
LQ Newbie
Registered: Sep 2003
Location: San Diego
Posts: 16
Rep:
|
try ps auxf
|
|
|
10-15-2003, 07:24 PM
|
#9
|
LQ Newbie
Registered: Sep 2003
Location: San Diego
Posts: 16
Rep:
|
oops
try " ps -auxf"
|
|
|
10-15-2003, 07:27 PM
|
#10
|
Member
Registered: Oct 2003
Distribution: Slackware
Posts: 335
Rep:
|
Yeah, ps is your answer. top is SUPPOSED to show only a certain number of processes; that's where the 'top' comes from (it shows your "top" processes, see?).
|
|
|
10-16-2003, 02:32 AM
|
#11
|
Member
Registered: Oct 2003
Location: UK/Chinese
Distribution: Slackware9.1
Posts: 55
Original Poster
Rep:
|
Great! thank you
|
|
|
All times are GMT -5. The time now is 03:49 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|