How to kill Linux process by pattern of process name

published Aug 15, 2015 02:00   by admin ( last modified Aug 15, 2015 02:00 )

Don't point pkill at anything you do not have the intention to kill.
Use

pgrep -f pattern

first, so you know what you are killing.

Use pkill -f, which matches the pattern for any part of the command line
pkill -f my_pattern


Read more: Link - linux - How to kill all processes with a given partial name? - Stack Overflow