linux kill all processes by name code example
Example 1: killall by name
pkill -f pattern
Example 2: kill process by name
#on a cluster #sbatch process
scancel -u username
pkill -f pattern
#on a cluster #sbatch process
scancel -u username