Screen

Start, Detach, Re-attach and Close: How To
Start:

Linux Terminal:~$ screen

Detach (and leave running):

Ctrl + A then D

Re-attach:

Linux Terminal:~$ screen -r

Close (either or):

Linux Terminal:~$ Ctrl + A then Ctrl + \ exit

Show Running Sessions: How To
Linux Terminal:~$ Ctrl + A then “

How To Delete A Screen Session
screen -ls

There are screens on: 23487.pts-0.devxxx     (Detached) 26727.pts-0.devxxx     (Attached) 2 Sockets in /tmp/uscreens/S-xxx.

screen -X -S 23487.pts-0.devxxx kill

screen -ls There is a screen on: 26727.pts-0.devxxx     (Attached) 1 Socket in /tmp/uscreens/S-xxx.

How To Scroll Back In A Screen Session
CTRL+A [  (to enter copy mode) PageUp or PageDown ESC   (to leave copy mode)

Custom Prompt
Edit your ~/.screenrc file and add the following line...

caption always "%{= bk} %-w%{bY}%n %t%{w}%+w %= [%H] %D %Y-%m-%d %c %A "

Scroll Back History
Edit your ~/.screenrc file and add the following line...

defscrollback 1000

To use the scrollback buffer...

CTRL+A [ PAGE UP ESC

http://www.samsarin.com/blog/2007/03/11/gnu-screen-working-with-the-scrollback-buffer/

Links
http://en.gentoo-wiki.com/wiki/Screen