Let's say that I have several users running ''ruby'' processes simultaneously. How do I write a shell command to kill the ''ruby'' process of one particular user? (I'm on CentOS 5.5.)
|
feedback
|
|
pkill is good good for this:
You can use pgrep with this as a test before you run it to see the process name and pid of what will be signaled:
| ||||
|
feedback
|
|
You can use the from
| |||||
feedback
|
|
As a worst-case, if you can login or Do NOT run as root :) | |||
|
feedback
|