Linux Processes Cheat Sheet/Pipe pgrep into kill

Signal all matching PIDs found via pgrep.

Section: Process Control and Signals

Pipe pgrep into kill

bash
bash
pgrep -f "celery worker" | xargs kill -TERM
Explanation

Signal all matching PIDs found via pgrep.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Process Control and Signals
Send SIGTERM
Ask a process to terminate gracefully.
OpenIn sheetbashsame section
Force kill with SIGKILL
Immediately kill a process that is not responding.
OpenIn sheetbashsame section
Reload with SIGHUP
Commonly used to ask daemons to reload configuration.
OpenIn sheetbashsame section
Pause process with SIGSTOP
Suspend execution without terminating the process.
OpenIn sheetbashsame section
Resume process with SIGCONT
Resume a stopped process.
OpenIn sheetbashsame section
List signal names
Print known signal names and numbers.
OpenIn sheetbashsame section