LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Please help easy questions, how do I stop a process from running in SSH? (https://www.linuxquestions.org/questions/linux-newbie-8/please-help-easy-questions-how-do-i-stop-a-process-from-running-in-ssh-176683/)

lexington 05-01-2004 11:32 AM

Please help easy questions, how do I stop a process from running in SSH?
 
Hello, what is the command to stop a process from running in SSH? Right now I am manually rebooting my server, but I would like to know how to stop a process from running without having to do so. In TOP I have:

2267 root 19 0 5400 5380 1408 R 33.3 0.5 10:24 0 q3ded
2480 root 19 0 5396 5376 1400 R 33.3 0.5 4:09 0 q3ded
2624 root 17 0 5404 5384 1408 R 32.7 0.5 1:25 0 q3ded
2160 root 9 0 21876 21M 1572 R 0.3 2.1 0:28 0 q3ded


I would like to stop those. Thanks

david_ross 05-01-2004 11:38 AM

If you want to kill them all:
killall q3ded

To kill one at a time you need to use the pid:
kill pid

See:
man kill

sh1ft 05-01-2004 11:38 AM

Wow your running 4 quake servers? :confused:

I don't really use top that much. This is how I kill processes:
type 'ps x' as root, then find the pid of the processes you want to kill. Then type 'kill <pid>' and you should be good to go.

lexington 05-01-2004 12:03 PM

hehe yes I am :) Actually now I have cut it down to 2 since everyone plays threewave and CTF only


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