kill all process by name linux code example
Example: kill all processes by name linux
ps -ef | grep 'myProcessName' | grep -v grep | awk '{print $2}' | xargs -r kill -9
ps -ef | grep 'myProcessName' | grep -v grep | awk '{print $2}' | xargs -r kill -9