1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2024-11-01 23:37:57 +01:00
tldr/pages/common/pkill.md
Alex Meng 017642dd9e pkill: Add example with -f flag
Its useful to be able to kill processes by their full command. The pgrep tldr page already has a -f flag example.
2016-01-13 15:03:35 -07:00

339 B

pkill

Signal process by name. Mostly used for stopping processes.

  • Kill all processes which match:

pkill -9 {{process_name}}

  • Kill all processes which match their full command instead of just the process name:

pkill -9 -f "{{command_name}}"

  • Send SIGUSR1 signal to processes which match:

pkill -USR1 {{process_name}}