How to kill Linux process by pattern of process name
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