kill process with name 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
Example 3: kill all process
killall node -9
pkill firefox
#on a cluster #sbatch process
scancel -u username
killall node -9