Last updated 8 months ago
To kill a process, first we need to know its process ID (PID), to do that we can use pidof command.
pidof
$ pidof {PROCESS_NAME}
$ kill {PROCESS_ID}
$ killall {PROGRAM_NAME}
We can also kill a process interactively using htop command.
htop
Reference(s)