kill all processess linux code example
Example 1: kill all processes by name linux
ps -ef | grep 'myProcessName' | grep -v grep | awk '{print $2}' | xargs -r kill -9
Example 2: kill process linux
#terminate process with SIGKILL signal by process id
kill -9 pid