kill all processes by name code example
Example 1: kill all node processes
killall -s KILL node
Example 2: kill all processes by user
killall -u user
Example 3: kill all processes by name linux
ps -ef | grep 'myProcessName' | grep -v grep | awk '{print $2}' | xargs -r kill -9
Example 4: kill all node processes
killall node
Example 5: killall by name
pkill -f pattern
Example 6: kill all process
killall node -9