How can I kill all stopped jobs?

To quickly kill all the stopped jobs under the bash, enter:

kill -9 `jobs -ps`

jobs -ps lists the process IDs (-p) of the stopped (-s) jobs.
kill -9 `jobs -ps` sends SIGKILL signals to all of them.

Leave a Comment