linux: kill all my processes but not this terminal
Solution 1:
This kills all processes except the ones associated with the current terminal:
kill `ps -o pid= -N T`
Solution 2:
But just want to say don't use -9 as a knee jerk mechanism as it should be used as a last resort. It can't be caught by the process and doesn't let a process cleanup its resources.
Try maybe kill -15 instead to start.