How To Kill A Process In Linux {Ubuntu, Cent OS} Debian & Non-Debian Linux

Easy ways to kill a process in Linux!

Kill A File In Linux


ill a process in Linux: Sometimes, The application running in the Linux will freeze and won’t respond to your commands. In Windows, you have the Task Manager option to kill all the non-responding apps or frozen apps. But in Linux, by default, you don’t have any front-end control to end the frozen apps. Luckily Linux has the Terminal and using some commands, it is able to end or control all the frozen & non-responding apps. In this article, you will learn to kill frozen & non-responding apps in a Linux PC. Below we are going to use the Kill & Killall utility to kill a program. The Kill & Killall command will help you terminate the frozen app in Linux, but you need to mention or use the command along with with the PID {Process ID Number} of the frozen app.

Jump To:

Kill Process Using Kill Command:

Kill command is mainly used to terminate the single process in Linux, There are many signals used in Linux to do the different process. To view, all the available signals use the below command:

$kill -l

The following output will appear on your screen.

Kill Utility list
Kill Utility list

You can specify the above signals in 3 formats and they are:


You can use the Kill Utility these ways:

using number (e.g., -9)
with the "SIG" prefix (e.g., -SIGKILL)
without the "SIG" prefix (e.g., -KILL).

How to Kill a Process in Linux Using Kill Command:

You can use this command to kill any frozen apps like chrome or chromium etc.. In order to kill or terminate any program, you just need to know the PID number, along with Kill command add the PID number to kill the process. Here let us we consider the Chrome browser freezes & not responding to user commands. Now you need you to kill the Chrome browser, follow the below steps:

  • First, you need the find the Process ID number of the Chrome browser
  • You can use the pidof, pgrepcommands to find the Chrome PID number & the same command can be used to for any app to find its PID number
$pidof chrome

You will get the following output:

Check this too  DF Command in Linux: DF Command to Check Disk Space in Linux
Chrome PID Number
Chrome PID Number
  • Copy the above PID number of chrome and use it with the kill command to end the process of Chrome browser. Use the following command:
$kill -9 5676 5643 5284 5273 5263 5239 5219 5209 5175 5164 5138 5117 5107 5031 5018 5013 5006 5001 4994 4988 4984 4978 4964 4962 4773 4769 4722 4716 4704

The above command will terminate the Chrome Browser instantly in Linux.

Kill a Process using Killall Command in Linux:

This Killall, is similar to the Kill command, you can kill all the process specified with killall command at the same time. You can use this command to terminate the batch process. To use this command, you need the mention the application name along with the kill command. Here, for example, we use the Killall command to close the putty program. Use the following command.

$killall putty

From the above video, you may able to see the working of Killall command used to terminate the process of Putty in Linux.

Kill a process as a User in Linux:

You can kill the process which is run by a user with the help of Killall Command. To view the list of functions available with Killall command, Type “killall” in your terminal. You need to add user ID along with the Killall command, use the following commands:

$killall -u tecrobust

The u represents the user and tecrobust is the name of the user. From the above command, you will kill or terminate any process by the user.


That’s it. We hope you learned some methods to kill or terminate the not responding process in Linux. If you have any queries related to this topic and feel free to comment us below.

Check this too  ls Command: How To List Files in Linux Using ls Command
Article Review
  • Content Explanation
  • Commands Provided
  • Images Explanation


For more article, Kindly Visit our HomePage

Leave a Reply

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

Written by Julian

Hello Folks! I'm Julian, Promoted to the Content writer for the category of Commands & Web Apps in Tec Robust. Enjoy my content & Learn more Linux Commands!

Contact me:
tecrobust [@]
Sub: Message to Julian

OnlyOffice Ubuntu

How To Install OnlyOffice For Ubuntu 18.04 LTS & 19.04 {Desktop Edition}

Change User Password Linux

Change & Reset User Password In Linux!