> 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/is-kontrolu.md).

# İş Kontrolü

Linux'ta tek bir terminal penceresi kullanırken ve uzun süren bir komut çalıştırıyorsanız, komut tamamlanana kadar komut satırıyla etkileşim kuramazsınız. Ancak, makinemizde çalışmaya devam etmek istiyoruz, bu nedenle terminal penceresini açık tutmamız gerekiyor. Neyse ki, işler (jobs) ile processlerimizin nasıl çalıştığını kontrol edebiliriz.

#### Arka Planda İş Çalıştırma

Bir komuta ampersand (&) ekleyerek, komutu arka planda çalıştırabilir ve böylece hala terminalinizi kullanabilirsiniz. Bir örneğe bakalım:

```
$ sleep 1000 &

$ sleep 1001 &

$ sleep 1002 &
```

Bu komutlar çalışacak ve terminalinizi kullanmaya devam edebileceksiniz.

#### Arka Plandaki İşleri Görüntüleme

Arka plana gönderdiğiniz işleri şimdi görüntüleyebilirsiniz.

```
$ jobs


[1]    Running     sleep 1000 &

[2]-   Running     sleep 1001 &

[3]+   Running     sleep 1002 &
```

Bu komut, ilk sütunda iş kimliğini, ardından durumu ve çalıştırılan komutu gösterir. İş kimliğinin yanındaki "+" sembolü, başlatılan en son arka plan işi olduğunu gösterir. "-" ile iş ise ikinci en son arka plan işidir.

#### Mevcut İşleri Arka Plana Gönderme

Zaten bir iş çalıştırdıysanız ve onu arka plana göndermek istiyorsanız, sonlandırıp yeniden başlatmanıza gerek yoktur. Önce işi Ctrl-Z ile askıya alın, ardından arka plana göndermek için "bg" komutunu çalıştırın.

```
pete@icebox ~ $ sleep 1003

^Z

[4]+    Stopped     sleep 1003


pete@icebox ~ $ bg

[4]+    sleep 1003 &



pete@icebox ~ $ jobs



[1]    Running     sleep 1000 &

[2]    Running     sleep 1001 &

[3]-   Running     sleep 1002 &

[4]+   Running     sleep 1003 &
```

#### Arka Plandaki İşleri Öne Taşıma

Arka plandaki bir işi öne taşımak için istediğiniz iş kimliğini belirtmeniz yeterlidir. "fg" komutunu herhangi bir seçenek kullanmadan çalıştırırsanız, en son arka plan işini (yanında "+" işareti olan iş) geri getirir.

```
$ fg %1
```

#### Arka Plandaki İşleri Sonlandırma

Arka plandaki işleri öne taşımaya benzer şekilde, Job ID'lerini kullanarak processleri sonlandırabilirsiniz.

```
kill %1
```


---

# 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:

```
GET https://turkce-linux.gitbook.io/anasayfa/processes/is-kontrolu.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
