Home

Published

- 1 min read

kill process group linux

img of kill process group linux

The solution for this is noted below

kill process group linux

Solution

   # Find process group ID using child process name
PGID=$(ps -ej | grep some-process-child | head -1 | awk '{print $2}')
# Kill process group using group ID
kill -- -$PGID

Try other methods by searching on the site. That is if this doesn’t work