Screen
Screen holds the state of a terminal on the machine on which it is running. This allows you to: run screen, set things running, detach screen, log out, reattach screen later and carry on where you left off. Screen also allows you to flip between several "windows" within the same terminal.
As always, do read the manual: `man screen`. Here are my crib notes of the main bits.
A basic way to use screen is as follows:
- Start screen for the first time by just typing "screen"
- If required, I detach screen with: Ctrl-a d
- Then reattach (detaching from elsewhere if necessary) with s, where I have this set up: alias s='screen -dr'
Probably the next important things:
- To type Ctrl-a (eg go to beginning of line in shell), type Ctrl-a a
- If I want more than one window, create new windows using "Ctrl-a c". You can move to a numbered window [0-9] with Ctrl-a [0-9].
- Get more help with: Ctrl-a ?
Oh and another thing is that Ctrl-l is a general "please redraw my terminal" key-combination. This is not special to screen, but terminals sometimes get mangled on reattaching and Ctrl-l normally fixes it.
