Screen

GNU Screen is a program that enables the user to create sessions and have several virtual consoles.

Installation
Full-screen window manager that multiplexes physical terminals between several processes. is available on Gentoo Linux and supports the following useflags


 * debug = Enable extra debug codepaths, like asserts and extra output. If you want to get meaningful backtraces see http://www.gentoo.org/proj/en/qa/backtraces.xml
 * multiuser = Enable multiuser support (by setting correct permissions)
 * nethack = Express error messages in nethack style
 * pam = Adds support for PAM (Pluggable Authentication Modules) - DANGEROUS to arbitrarily flip

You can install Screen using the following command:

The configuration files are located in

Screen Configuration Files

Usage
General usage of Screen

Start Session
Screen can be started with the following command:

Once started is will create a socket for the session in /var/run/screen/S- You can use any key combination within the session except of + which initiates the Command-Mode. Give the session a reasonable name on startup:

Start a command in a screen session without attaching to it (like a daemon):

Commands
In Command Mode (+) the following key combinations can be used:
 * = create another terminal
 * = switch to the next terminal
 * = detach from the current session

Resume Session
After the session is detached, all the active terminals remain active and so do commands that didn't finish yet. To list existing sessions:

To resume this session:

Links
gnu.org screen page