2018-11-15 10:17:41 +00:00
|
|
|
---
|
|
|
|
layout: page
|
|
|
|
category-title: Intermediate commands
|
|
|
|
category-page: intermediate
|
|
|
|
tags:
|
|
|
|
author: Announ Marwan
|
|
|
|
title: kill
|
|
|
|
---
|
2018-11-15 20:09:21 +00:00
|
|
|
The <code>kill</code> command is used for terminating the
|
|
|
|
running processes on your system.<br>
|
2018-11-15 10:17:41 +00:00
|
|
|
|
2018-11-15 20:09:21 +00:00
|
|
|
In fact, using this commands you can easily kill all the processes that you want.
|
|
|
|
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.<br>
|
2018-11-15 10:17:41 +00:00
|
|
|
|
2018-11-15 20:09:21 +00:00
|
|
|
<h3>killall</h3>
|
2018-11-15 10:17:41 +00:00
|
|
|
|
2018-11-15 20:09:21 +00:00
|
|
|
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".
|
2018-11-15 10:17:41 +00:00
|
|
|
|
|
|
|
<pre>
|
2018-11-15 20:09:21 +00:00
|
|
|
killall -s 9 [process name]
|
|
|
|
killall -KILL [process name]
|
|
|
|
killall -9 [process name]
|
2018-11-15 10:17:41 +00:00
|
|
|
</pre>
|
|
|
|
|
2018-11-15 20:09:21 +00:00
|
|
|
<h3>kill</h3>
|
2018-11-15 10:17:41 +00:00
|
|
|
|
2018-11-15 20:09:21 +00:00
|
|
|
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.
|
2018-11-15 10:17:41 +00:00
|
|
|
|
|
|
|
<pre>
|
2018-11-15 20:09:21 +00:00
|
|
|
kill [PID]
|
|
|
|
kill -s KILL [PID]
|
|
|
|
kill -KILL [PID]
|
2018-11-15 10:17:41 +00:00
|
|
|
</pre>
|