Any neat and quick way to kill a process including all child processes

kill, linux, process, shell

Solution

If they're all in the same group, use `kill` and pass the negation of the group id, as in here.

Problem

I know this sounds like a common question and I should be able to find answer in archives. Tried looking for some, but couldn't find. All the responses look very lengthy. Any 1-liner to kill a process in linux including all its children processes.

Original source

Related problems