how to kill a process by name in linux code example
Example 1: how to kill process by command name
pkill firefox
Example 2: kill process by name
#on a cluster #sbatch process
scancel -u username
pkill firefox
#on a cluster #sbatch process
scancel -u username