I am often logged in several SSH sessions at once. To logout from several sessions, I press CTRL+d, until I am back on my local machine.
However, I occasionally press it once too many, and my terminal exits.
Is there a way to make CTRL+d unable to close my terminal ?
I am using terminator as my terminal emulator.
Best Answer
You can also disable eof generally in bash:
set -o ignoreeof