Skip to content

Latest commit

 

History

History
30 lines (19 loc) · 572 Bytes

File metadata and controls

30 lines (19 loc) · 572 Bytes

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)