Linux: kill all the processes but not this terminal

bashkilllinux

I want an easy way in linux to kill all my current processes.

The problem with kill -9 -1 is that it also kills the current terminal. Is there an easy way to kill everything except the current terminal?

Best Answer

This kills all processes except the ones associated with the current terminal:

kill `ps -o pid= -N T`