1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 09:42:07 +02:00
tldr/pages/common/pkill.md
2024-06-18 18:01:31 +02:00

562 B

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:

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}}"