Signal all child processes of a parent.

Section: Batch Termination Patterns

Kill by parent PID

bash
bash
pkill -P 1234
Explanation

Signal all child processes of a parent.

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 Batch Termination Patterns
Kill exact process name
Only match an exact process name.
OpenIn sheetbashsame section
Kill all by user and name
Limit killall by user and executable name.
OpenIn sheetbashsame section
Kill using regex
Use a regex pattern with killall where supported.
OpenIn sheetbashsame section
Terminate port owners with lsof and xargs
Combine lsof and xargs to terminate port users.
OpenIn sheetbashsame section
Signal oldest match
Signal only the oldest matching process.
OpenIn sheetbash1 tag match
Signal newest match
Signal the newest matching process.
OpenIn sheetbash1 tag match