Update cheatsheets

This commit is contained in:
ivuorinen
2024-02-21 11:19:49 +00:00
parent 4e88a1b42f
commit 3d653cc7e6
4803 changed files with 127002 additions and 0 deletions

30
pkill Normal file
View File

@@ -0,0 +1,30 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# pkill
> Signal process by name.
> Mostly used for stopping processes.
> More information: <https://www.man7.org/linux/man-pages/man1/pkill.1.html>.
- Kill all processes which match:
`pkill "{{process_name}}"`
- Kill all processes which match their full command instead of just the process name:
`pkill -f "{{command_name}}"`
- Force kill matching processes (can't be blocked):
`pkill -9 "{{process_name}}"`
- Send SIGUSR1 signal to processes which match:
`pkill -USR1 "{{process_name}}"`
- Kill the main `firefox` process to close the browser:
`pkill --oldest "{{firefox}}"`