clarify various entries

This commit is contained in:
Malin Freeborn
2021-05-15 16:41:45 +02:00
parent 95d9ddf031
commit 4f1ca14d02
9 changed files with 101 additions and 305 deletions

View File

@@ -1,4 +1,24 @@
# Basic Signals
If you want to kill a program in a graphical environment, open a terminal and typeL
## Graphical Programs
> xkill
Then click on the application which you want to kill.
## All Programs
To kill a program, find it with:
> pgrep discord
This will give you the UUID, e.g. `19643`.
Kill the program with:
> kill 19643
## Types of Kill
To see an ordered list of termination signals:
@@ -8,3 +28,26 @@ To see an ordered list of termination signals:
6) SIGABRT 7) SIGBUS 8) SIGFPE 9) SIGKILL 10) SIGUSR1
11) SIGSEGV 12) SIGUSR2 13) SIGPIPE 14) SIGALRM 15) SIGTERM
You can select these levels with a '- number'.
Higher numbers are roughly equivalent to insistence.
For example:
> kill -1 3498
This roughly means 'maybe stop the program, if you can, maybe reload'.
Or the famous:
> kill -9 3298
This means 'kill the program dead, now, no questions, dead'.
**Beware** - if Firefox starts another program to connect to the internet, and you `kill -9 firefox`, this will leave all of Firefox's internet connection programs ("children") still there, but dead and useless.
- A dead program which sits there doing nothing is known as a 'zombie'.
- A program which is run by another program is called a 'child program'.
- A child whose parent program is dead is called an 'orphan'.
- A child who remains running despite being useless because the parent is dead is called an 'orphan zombie'.