Ubuntu Linux is a highly optimized OS. However, there are some occasions when a process eats a big chunk of resources. These processes eat up PC resources and make it slow. Therefore, I am here to show how you can kill a process in Ubuntu Linux. These methods will be easy to use. If you are a beginner then you will find these methods easy. So lets us get started.
The process is something that apps trigger to work properly. However, they sometimes overexert it and eats more resources then they need to. They even get stuck and use those resources for no reason. That is why you need to kill the process in Ubuntu Linux. By kill, I mean “force stop” the process from running. There are two kinds of the process in Ubuntu Linux. One is a background and the other is foreground. The foreground is the process that runs when you are using the app or software. The background process is when the app triggers a process without running. This is the process we need to focus on. The background process is the main reason for resource losses.
you might also like: How to Backup Registry In Windows 7
How to kill a process in Ubuntu Linux
There is a GUI and CUI method that you can use to kill a process in Ubuntu Linux. The GUI method is easy to use. So let us discuss it first. You can use this method to force stop an unresponsive app.
Kill a process in Ubuntu Linux via GUI
Just click the “x” button and the message will show up. Here click force quit and the process will end. If that does not work, you can use another GUI method. You can use system monitor to kill a process. Follow the steps shown below.
- Press Alt+f2 to open run window.
- Here type gnome-system-monitor and hit enter.
The system monitor will open now. Here you can see every process running on your Ubuntu Linux PC.
- Now find the process that you want to kill.
- Click on it and then click end process.
- The process will terminate shortly.
You can kill a process in Ubuntu Linux using this method.
Kill a process in Ubuntu Linux via CUI
You can use the terminal to end a process. I will show you some commands that you can use to kill a process.
First, open terminal.
To use kill command, you need to find the process’s PID first. You can use the top command to see all the processes running on your PC. Here, you can also find the PID of the process you want to kill in Ubuntu.
Now go to terminal and type top and hit enter.
All the process will now show up along with their PID.
Now go to terminal and type kill command and the PID. The process will terminate.
Wait; there is more to the story. However, this is for advanced users. If you just want a no brainer command then stop here. The above command is enough to terminate a process. There is another thing you need to do. Because the proper way to execute a kill command is following.
Kill Signal PID
You will need to find the number callout of the signal. There are so many ways to kill a process in Ubuntu Linux. Kill command uses signals to determine a way to kill a process. A signal is a number indicating the action. Go to the terminal and type the following command.
Now you will be able to see all the callouts for a signal command. It is a number of the action or signal that kill command will take.
So this how you can kill a process in Ubuntu Linux via CUI.
you might also like: Use Command Lines To Turn On / Turn Off Bluetooth In Windows 10
A process is an essential part of Ubuntu Linux. They are required for the proper functioning of your Linux machine. However, they malfunction sometimes causing system freeze and other issues. They also end up using more resources. This why it becomes impotent to kill a process. IF you ever stuck in this situation then this article has you covered.