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