kill all process by name code example
Example 1: kill all process
killall node -9
Example 2: killall by name
pkill -f pattern
Example 3: how to kill process by command name
pkill firefox
Example 4: kill process by name
#on a cluster #sbatch process
scancel -u username