Despite my best efforts, I occasionally have to perform system administration. This often means checking logs, reading man pages, typing commands, and editing configuration files–often on a remote system. I have a great little shell script that opens several Xterms in the appropriate way on my local machine under an X11 session, but that doesn’t always work on remote systems.

That’s just one reason to love GNU Screen. All of a sudden, one remote login can host a handful of command-line sessions. It’s easy to flip back and forth as necessary.

I used screen off and on for a few years, until someone (I forget whom, sadly) taught me the most useful trick of all. I use Ctrl-a and Ctrl-e to jump to the start and end of Bash lines, but screen uses Ctrl-a as its hotkey. At least, it does until you add one line to your ~/.screenrc:

escape \034\034

Now Ctrl-\ is my hotkey; I never type that by accident, and Ctrl-a does exactly what it should do. There’s no pain in using screen anymore, and I’m a convert. Thanks to all of the screen developers and contributors!