2025-03-14 21:59:59 -06:00
|
|
|
# pkill
|
|
|
|
|
|
|
|
|
|
> Signal process by name.
|
|
|
|
|
> Mostly used for stopping processes.
|
|
|
|
|
> More information: <https://www.manned.org/pkill>.
|
|
|
|
|
|
|
|
|
|
- Kill all processes which match:
|
|
|
|
|
|
|
|
|
|
`pkill "{{process_name}}"`
|
|
|
|
|
|
|
|
|
|
- Kill all processes which match their full command instead of just the process name:
|
|
|
|
|
|
2025-03-19 19:23:44 -06:00
|
|
|
`pkill {{[-f|--full]}} "{{command_name}}"`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- 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:
|
|
|
|
|
|
2025-03-19 19:23:44 -06:00
|
|
|
`pkill {{[-o|--oldest]}} "{{firefox}}"`
|