Killing every process started by a Bash script? - featuring trap, ps, pstree, kill, and tr
How to kill everything ran in a Bash script when it terminates? Let's explore processes, their ID, group ID, and how to manipulate them to solve a common problem.
Most tools used in this video are GNU tools.
The files: https://github.com/Phantas0s/mouseless-dev-youtube/tree/master/00_use_cases/bash_trap
------------------------
📙 Building Your Mouseless Development Environment: https://themouseless.dev
📑 Learning to Play Vim: https://themouseless.dev/vim
💎 Increase your value as a developer: https://thevaluable.dev
🐙 Github: https://github.com/Phantas0s
🍒 Support the channel: https://github.com/sponsors/Phantas0s