LinuxQuestions.org
Review your favorite Linux distribution.
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 10-24-2004, 04:19 PM   #1
the_rhino
Member
 
Registered: Sep 2004
Distribution: PCLinuxOS
Posts: 59

Rep: Reputation: 15
how to kill a process


how does one find the pid of a running process?
 
Old 10-24-2004, 04:26 PM   #2
Boby
Member
 
Registered: Feb 2004
Location: Sighisoara/Cluj-Napoca (Romania)
Distribution: CentOS 4, Fedora Core 6
Posts: 781

Rep: Reputation: 31
Code:
ps -aux
gives you all process and their PID number. Just like CTRL+ALT+DEL in Windows.
To kill a process, type
Code:
kill PID_NR
Hope it helped!
Boby
 
Old 10-24-2004, 04:27 PM   #3
twilli227
Member
 
Registered: May 2003
Location: S.W. Ohio
Distribution: Ubuntu, OS X
Posts: 760

Rep: Reputation: 30
Run "top" in a terminal window. The left hand column is the pid.
 
Old 10-24-2004, 05:36 PM   #4
Devils_Guardian
LQ Newbie
 
Registered: Oct 2004
Location: Canada
Distribution: Debian... of course... got a woody too?!
Posts: 10

Rep: Reputation: 0
Won't die? .. MURDER IT!!!

I ran into a situation where the process wouldn't be killed.... sooooo...

The only way to do it at that point is to do a 'kill -9 PID'

That will take care of er!





One newbie to another,

DA
 
Old 10-24-2004, 05:44 PM   #5
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Or just use the widely unknown

skill!

skill -9 bash
or
skill -9 -u goofy


Cheers,
Tink
 
Old 10-24-2004, 11:05 PM   #6
the_rhino
Member
 
Registered: Sep 2004
Distribution: PCLinuxOS
Posts: 59

Original Poster
Rep: Reputation: 15
Thanks for the replies.
 
  


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
Process won't kill mrsolo Linux - Software 5 08-03-2007 01:45 PM
I want to kill process Jeon, Chang-Min Linux - General 6 08-09-2005 01:14 AM
cannot kill process (kill -9 does not work) mazer13a Linux - General 1 05-27-2005 03:32 PM
Cannot kill process Zeno McDohl Linux - General 13 04-14-2005 03:31 PM
can't kill the process ust Linux - Software 1 09-15-2004 07:05 AM


All times are GMT -5. The time now is 12:56 PM.

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