---
layout: page
category-title: Intermediate commands
category-page: intermediate
tags:
author: Announ Marwan
title: kill
---
Kill Commands
Before all, what is a "kill command"!?
"kill" is a command used for terminating the
running processes on your system.
In fact, using this commands you can easily kill all the processes that you want.
Why I have to use it?
Sometimes happens that you couldn't control an application, for example when
you want to exit from your browser when it seems freezing.
You have to know that "kill commands" can help you in do this.
Ok, good, I understand, but how can I use it?
First, you have to know that there are two type of kill commands.
-killall
-kill
KILLALL
Will terminate all programs that match the name specified without
additional arguments.
You have to know also that "killall" sends SIGTERM, or signal number 15.
If you want to specify a different signal you can use "-s".
examples of using killall
-killall -s 9 [process name]
-killall -KILL [process name]
-killall -9 [process name]
KILL
Will terminate only one program.
Without Without options, kill sends SIGTERM to the PID specified and asks the application
or service to shut itself down.
examples of using only kill
-kill [PID]
-kill -s KILL [PID]
-kill -KILL [PID]
Now, you can close all the programs with this commands, have a fun :)