Skip to the content.

Kill A Process In Linux

To kill a process, first we need to know its process ID (PID), to do that we can use pidof command.

Find PID of a Process

$ pidof {PROCESS_NAME}

Kill a Process

$ kill {PROCESS_ID}

Kill all the process with a program name

$ killall {PROGRAM_NAME}

Using htop

We can also kill a process interactively using htop command.

Reference(s)