 |
Navigation |
|
|
|
|
|
|
|
 |
Latest Guides |
|
|
|
|
|
|
| Viewing Guide | |
 |
|
|
|
|
Kill all processes matching certain strings.
Written by: HostGeekZ
This guide is wraped for easy viewing, to see the non wraped version Click Here
|
Have you ever wondered how to kill all processes matching certain strings, for our example we will use httpd.
One very simple method is killall, such as
killall -9 httpd
If that doesn't work you can go through the process list and kill -9 the pids by using the following,
kill -9 $(ps aux | grep -v grep | grep httpd | awk '{print $2}')
Where httpd would be the string. | |
|
|
|
|
| User Comments | |
 |
|
|
|
|
|