Hopefully, if you are using Linux command line, you've heard of screen. And if you've heard of it, chances are, you're already using it. I've wrote about one usage of screen on my previous blog post, explaining how to use it to access your Raspberry Pi via serial connection. Now, we're going to see what else can be done with this useful tool.
Screen is a terminal multiplexer. This means that you can start screen in one terminal and open any number of terminals inside that terminal. This lets you have several applications, like mutt, lynx, python client and a couple of spare shells, all open inside a single PuTTY/SSH connection. This is a great use of screen, but the benefits don't just end there. Thanks to screen you can run this time consuming package compilation you don't want to be interrupted in case your SSH connection gets flaky for any reason. You can just start it, exit screen and your SSH connection, and return later to see the progress. You can even run applications inside screen not having to change terminals constantly, log in and out, or to worry your X crashes. Screen is just there, as if above it all. It detaches from your actual console session. There is even more - it will auto-detach if the terminal it's in crashes or you logout. You can easily re-attach it at any time on any SSH, TTY or X session. The only major thing that will erase screen session is a reboot.
In my blogpost i cover:
1. Installation
2. Getting Started
3. Screen usage:
3.1. Opening windows within screen
3.2. Window navigation
3.3. Killing windows
3.4. Exiting screen
4. More screen voodoo:
4.1. Detaching/reattaching sessions
4.2. Locking screen
4.3. Naming/renaming screen sessions
4.4. Copy and paste
4.5. Renaming windows
4.6. Hardstatus line
4.7. Configuration file
5. Default key bindings
Read about screen here: http://www.bartbania.com/index.php/linux-screen/
