From 10a5c587a7fa908af46bc20c3b0e217ff95a8b0f Mon Sep 17 00:00:00 2001 From: waldek Date: Tue, 6 Jul 2021 07:45:51 +0200 Subject: [PATCH] fixes gramm mistakes and adds extra chapters --- modules/qualifying/learning_processes.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/modules/qualifying/learning_processes.md b/modules/qualifying/learning_processes.md index ee6b603..cb11598 100644 --- a/modules/qualifying/learning_processes.md +++ b/modules/qualifying/learning_processes.md @@ -198,7 +198,7 @@ You can use `htop` as well to send signals! Have a try at this with the same long list of sleep command and not the behavior of the processes. By stopping and continuing a process you can probably explain me what the `S` column means now no? -## Nohup and disown +## Disown Up until now all of the commands and examples should work in both `bash` and `zsh`. To test the following command I advise you to take a `bash` shell because it's [posix](https://en.wikipedia.org/wiki/POSIX) compliant. @@ -305,6 +305,10 @@ The practice will explain it a lot better than some codeblocks. Now why is the process only changing parent once the original parent terminates? I'm asking you to look for an answer online but the solution can be found the realm of *signals*, especially the *hang up* [signal](https://en.wikipedia.org/wiki/SIGHUP). +## Nohup + +TODO + ## Zombie processes Yes, there are such things as zombie processes. @@ -376,7 +380,7 @@ Why do you think this is? ### Renice -Nice values are that practical if we need to set them before we start a process no? +Nice values are not that practical if we need to set them before we start a process no? That's where the `renice` program comes into play. It allows us to change the nice value of a running process with a very simple syntax. I would advise you to use `sudo` when changing the nice values because otherwise you'll constantly run into either `operation not permitted` or `permission denied` errors. @@ -392,6 +396,10 @@ I would advise you to use `sudo` when changing the nice values because otherwise ➜ ~ git:(master) ✗ ``` +## /proc virtual filesystem + +TODO + ## Exercises To help you understand what happens to running and stopped processes I made a few python scripts you can download below.