How to stop a bunch of processes on unix fast.
I can use
If the number of processes is very large, I use shell script. Are there other ways, only one or two unix commands can do it well ?
migrated from stackoverflow.com Oct 27 '11 at 5:16
This question came from our site for professional and enthusiast programmers.
Here's a little on-line bash script I use:
I kills all processes whose name contains the first parameter (case insensitive). The breakdown of each part is:
Script can be directly downloaded here.