Kill command is mainly used to kill a process, if you know the PID of the process then you can easily use kill command. Through these commands you can also kill background processes which you don’t want to run. In this article we are going to explain how to use these Linux commands in Linux.

  • Killall command: This command is used to kill one or more processes. There is no need to mention PID, you can kill the process with the name only. It means if three program are running with same name then all the program will kill with this command.
Code:
$ killall -9 firefox
  • Kill command- kill the program by using PID : in this command you can kill the particular process by specifying its PID. You just need to search for pid of the process and you can kill the argument.
Code:
$ kill -TERM pid
$ kill -SIGTERM pid
$ kill -15 pid
  • Pkill command – kill the process according to name of process: through this command you can kill the process by specifying the name of the process. You can use full name or partial name to send the signal to any process. You just need to enter the following command :
Code:
$ pkill sample
Here sample is the name of the process.
  • Xkill command – xkill command is used to kill defective program. To kill the process first you have to run the command xkill command and after that a cross hair cursor will appear on screen. Now you have click on the process which you want to kill. Through this command you can client terminate the client.
Code:
$ xkill
Author
bhawanisingh
Views
1,846
First release
Last update
Rating
0.00 star(s) 0 ratings
Top