Learn how to kill processes in Linux. Find out the command required to kill a process via the terminal application
Don't forget to check out our site for more free how-to videos!
- our feed
- join us on facebook
- our group in Google+
In this tutorial, we will guide you on how to kill a process in Linux. On your computer system, you may have several processes running in the background. Some might be active while the others might be in sleeping mode (inactive). You might want to kill a specific process in linux because it might be wasting too many system resources. In this tutorial, we will teach you how to kill a process in linux by using the terminal application.
Step 1 -- View process tree in terminal
First of all, open the terminal. With the terminal application opened up, let's view the entire process tree. In order to do so, type in the "pstree" command and hit the enter key.
Step 2 -- Use the top command
With that done, let's use the "top" command to see the top running process along with their process ID.
Step 3 -- Linux "kill process" command
To kill a process, you will first have to note down the process id. The process id is important for the linux kill command. For example, we might want to kill the gnome-terminal process. The linux kill command for the gnome-terminal process would be "kill 7381". Type it in and then hit the enter key.
This will automatically kill the process and close the terminal application.
Watch video How to kill Process in Linux online without registration, duration 36 second in high hd quality. This video was added by user HOWTECH 13 February 2013, don't forget to share it with your friends and acquaintances, it has been viewed on our site 95 thousand once and liked it 43 people.