This page is for techniques related to Linux processes and their management.
TBC
Find the root PID of the process tree then generate the command required to kill the entire tree by:
PID=362 ps xf | awk -v PID=$PID ' $1 == PID { P = $1; next } P && /_/ { P = P " " $1; K=P } P && !/_/ { P="" } END { print "kill " K }' |
TBC