I want to kill all processes that I get by:
ps aux | grep my_pattern
How to do it?
This does not work:
pkill my_pattern
I want to kill all processes that I get by:
ps aux | grep my_pattern
How to do it?
This does not work:
pkill my_pattern
If you need more flexibility in selecting the processes use
You can use grep -e etc.
Also you can use
killall -r my_pattern
.-r
Interpret process name pattern as an extended regular expression.Kill all processes matching the string "myProcessName":
One liner:
Source: http://www.commandlinefu.com/commands/view/1138/ps-ef-grep-process-grep-v-grep-awk-print-2-xargs-kill-9
you can use the following command to list the process
if you need to check the count of that process then run
after which you can kill the process using
You can use the following command to
You can use the following command to:
or
It works for me.