Andrew Pennebaker
https://github.com/mcandre/cheatsheets/blob/master/screen.md
GNU Screen is a program for managing multiple terminal sessions as "windows". Windows can be created, destroyed, backgrounded, foregrounded, split, and logged.
http://www.gnu.org/software/screen/manual/
$ apt-get install screen
$ chocolatey install cygwin
In Mac OS X, GNU screen is a built-in program.
$HOME/.screenrc
C-
=Control
M-
=Alt
("Meta" key)S-
=Shift
key-key key-key key-key...
= Hotkeys are pressed in order, not simultaneously.<...>
= user-defined value[...]
= optional
C-a : <command>
$ screen [options]
screen$
Options includes:
-S <name>
Name the new window-d
Automatically detach from the new window-X <command>
Execute a shell command
screen$
C-a c
[C-a A <name>]
C-a "
C-a n
C-a p
Detaching a window allows it to run in the background, e.g. even after disconnecting from an SSH session.
C-a d
Screen can resume a running window, e.g. once an SSH session has been reestablished.
$ screen -x <name>