LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   killing processes (https://www.linuxquestions.org/questions/linux-software-2/killing-processes-61622/)

adriaanbw 05-24-2003 06:11 PM

killing processes
 
using redhat 8 - can someone tell me how i can (a) find out what processes are running, and then (b) how to kill that process using the 'kill' command and the information i get using info from (a).

as you may have guessed, i want to do this from a console.

also, i *think* mandrake has a kill app on the desktop that allows you to kill windowed applications. is there anything like this in redhat.

david_ross 05-24-2003 06:13 PM

To see a list of running proccess:
ps -ef

you may want to pipe the output into a grep if you are looing for something in particular:
ps -ef | grep PROGNAME

You can kill using:
kill PID

Where PID is the PID for the proccess given by ps -ef.

You can get a gui proccess manager using "Ctrl + Esc"

TlitJ 05-24-2003 06:29 PM

Also, an alternative is to run as root* in a console and then run "top" and then sorting by processor usage (P) or memory (M). This can be a good way to find troublesome processes that are locked up, etc.

*need to be root to kill root processes

kazuni 05-24-2003 10:46 PM

sorry wasn't reading. someone already suggested this :P


All times are GMT -5. The time now is 05:55 PM.