Signal all matching PIDs found via pgrep.
Section: Process Control and Signals
Pipe pgrep into kill
bash
bash
pgrep -f "celery worker" | xargs kill -TERMExplanation
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
Force kill with SIGKILL
Immediately kill a process that is not responding.
Pause process with SIGSTOP
Suspend execution without terminating the process.