How can kill all the processes triggered by hotkey with some smart way? – Debian
I want to kill a process and its son process with trap command: vim waiting.sh trap "kill $$" EXIT sleep 10000 Now run it in background: debian@debian:~$ bash waiting.sh & [1] 29590 Have a look at all processes debian@debian:~$ ps…