Ciprian Craciun - FrontEnd Developer

Ciprian Craciun

FrontEnd/Web Developer

Engineering is about making a product better, learning from past mistakes and create a process which is easy for all to understand.

Ubuntu – how to kill a process from terminal

I had this problem with React Native Debugger and i google it to find a solution, i didn’t find something related to react native debugger but i found how to kill a process from terminal. So how to kill a process from terminal ?

We have two options, one from GUI, but sometimes is not working and the best one is from terminal.

From GUI you need to open System Monitor and find the process that you want to close, in my case React Native Debugger and then click on “End Process”.

System monitor
System monitor

And the last option, the one that is really working is from your console/terminal

To view every process:

ps -A or ps -e

To kill a process, either find the process name and type:

kill -9 processname

or kill the process ID (PID):

kill pid

You can use ps -A | grep <name> to find the process that you are sure is stuck:

process kill
process kill

Then you can run kill -9 PID and again the first command to see if the process is killed or not.

pid closed
pid closed

Sharing is caring!


Leave a Reply

Your email address will not be published. Required fields are marked *