> For the complete documentation index, see [llms.txt](https://turkce-linux.gitbook.io/anasayfa/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://turkce-linux.gitbook.io/anasayfa/processes/kill-sonlandirma.md).

# kill (Sonlandırma)

İşlemleri sonlandıran sinyaller gönderebilirsiniz ve bu komut ismine uygun bir şekilde "kill" olarak adlandırılır.

```
$ kill 12445
```

Komuttaki `12445` sonlandırmak istediğiniz processin PID'sidir (Process kimliği). "kill" komutu varsayılan olarak `SIGTERM` sinyalini gönderir. `SIGTERM` sinyali, process'e kaynaklarını temiz bir şekilde bırakması ve durumunu kaydetmesi için izin vererek sonlanmasını talep etmek için gönderilir.

Ayrıca "kill" komutu ile birlikte gönderilecek sinyali de belirtebilirsiniz:

```
$ kill -9 12445
```

Bu komut `SIGKILL` sinyalini çalıştıracak ve process'i sonlandıracaktır.

### SIGHUP, SIGINT, SIGTERM, SIGKILL, SIGSTOP Arasındaki Farklar

Bu sinyallerin hepsi kulağa benzer gelse de aralarında bazı farklılıklar vardır:

* **SIGHUP (Açılış Kesilmesi)**: Kontrol terminalinin kapatılması durumunda process'e gönderilir. Örneğin, içinde çalışan bir process bulunan bir terminal penceresini kapattığınızda, bir SIGHUP sinyali alırsınız. Yani temelde bağlantınız kesilmiştir.
* **SIGINT (Kesinti)**: Bir kesinti sinyalidir, bu nedenle Ctrl-C tuşlarını kullanabilirsiniz ve system process'i zararsız bir şekilde sonlandırmaya çalışır.
* **SIGTERM (Sonlandırma)**: Process'i sonlandırır ancak önce bazı temizlik işlemlerini yapmasına izin verir.
* **SIGKILL (Zordan Sonlandırma)**: Process'i sonlandırır, tüm kaynaklarını acilen bırakmasını sağlar, herhangi bir temizlik işlemi yapmaz.
* **SIGSTOP (Durdurma/Askıya Alma)**: Bir process'i durdurur veya askıya alır.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://turkce-linux.gitbook.io/anasayfa/processes/kill-sonlandirma.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
