Update cheatsheets

This commit is contained in:
ivuorinen
2025-10-15 00:19:37 +00:00
parent 220486abce
commit d5421f7c01
42 changed files with 459 additions and 43 deletions

25
tldr/linux/systemctl-kill Normal file
View File

@@ -0,0 +1,25 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# systemctl kill
> Send a signal to one or more processes of a unit.
> More information: <https://www.freedesktop.org/software/systemd/man/systemctl.html#kill%20PATTERN%E2%80%A6>.
- Send the `SIGTERM` signal to a unit to terminate it:
`systemctl kill {{unit}}`
- Send a specific signal to a unit:
`systemctl kill {{[-s|--signal]}} {{signal_number|signal_name}} {{unit}}`
- Send a `SIGHUP` signal to only the main process of a unit:
`systemctl kill {{[-s|--signal]}} SIGHUP --kill-whom main {{unit}}`
- List all available signals:
`systemctl kill {{[-s|--signal]}} help`