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 |
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.
|
|
07-07-2004, 02:43 PM
|
#1
|
Member
Registered: May 2004
Location: Iceland
Distribution: Ubuntu Dapper Drake
Posts: 172
Rep:
|
How can I see what process are running and how to I kill them? (command line).
How can I see what process are running and how to I kill them? (command line).
|
|
|
07-07-2004, 02:49 PM
|
#2
|
LQ Veteran
Registered: Sep 2003
Posts: 10,532
|
Hi again
ps -<options> To see processes, see man ps for a lot of options.
ps -ef and ps -aux are used a lot.
kill <pid> to kill a process. Pid being the process id. Again the manpage thingie.
|
|
|
07-07-2004, 02:49 PM
|
#3
|
Senior Member
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113
Rep:
|
'ps' with various options - a,u,x are useful.
'kill $PID'
or
'killall $NAME'
|
|
|
07-07-2004, 03:29 PM
|
#4
|
Member
Registered: Dec 2003
Location: Little Rock, AR
Distribution: Fedora Core 2, AIX, HP-UX, Solaris, Whitebox
Posts: 193
Rep:
|
To kill all the processes of a particular type:
ps -ef|grep <unique text that identifies the processes>|grep -v grep|awk '{print $2}'|xargs kill
So, if you wanted to kill all the mozilla processes on a box you would use
ps -ef|grep mozilla|grep -v grep|awk '{print $2}'|xargs kill
Of course, you can add more greps to this to make it less general. Like,
ps -ef|grep someUsersName|grep mozilla|blah,blah,blah.
|
|
|
07-07-2004, 04:01 PM
|
#5
|
Member
Registered: Oct 2003
Location: Iowa
Distribution: LFS 5.0, building 6.3, win98se, multiboot
Posts: 288
Rep:
|
top
man top
|
|
|
All times are GMT -5. The time now is 04:02 PM.
|
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
|
|