LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to kill a process (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-kill-a-process-246831/)

the_rhino 10-24-2004 03:19 PM

how to kill a process
 
how does one find the pid of a running process?

Boby 10-24-2004 03:26 PM

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

twilli227 10-24-2004 03:27 PM

Run "top" in a terminal window. The left hand column is the pid.

Devils_Guardian 10-24-2004 04:36 PM

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

Tinkster 10-24-2004 04:44 PM

Or just use the widely unknown

skill!

skill -9 bash
or
skill -9 -u goofy


Cheers,
Tink

the_rhino 10-24-2004 10:05 PM

Thanks for the replies.


All times are GMT -5. The time now is 05:09 AM.