Go to the first, previous, next, last section, table of contents.


Screen Command

Command: screen [opts] [n] [cmd [args]]
(C-a c, C-a C-c)
Establish a new window. The flow-control options (`-f', `-fn' and `-fa'), title option (`-t'), login options (`-l' and `-ln') , terminal type option (`-T term') and scrollback option (`-h num') may be specified for each command. If an optional number n in the range 0...9 is given, the window number n is assigned to the newly created window (or, if this number is already in-use, the next available number). If a command is specified after screen, this command (with the given arguments) is started in the window; otherwise, a shell is created.

If a tty (character special device) name (e.g. `/dev/ttyS0') is specified as cmd, then the window is directly connected to this device. This is similar to the cmd `kermit -l /dev/ttyS0 -c' but saves resources and is more efficient.

Thus, if your `.screenrc' contains the lines

# example for .screenrc:
screen 1
screen -fn -t foobar 2 telnet foobar

screen creates a shell window (in window #1) and a window with a TELNET connection to the machine foobar (with no flow-control using the title `foobar' in window #2). If you do not include any screen commands in your `.screenrc' file, then screen defaults to creating a single shell window, number zero. When the initialization is completed, screen switches to the last window specified in your .screenrc file or, if none, it opens default window #0.


Go to the first, previous, next, last section, table of contents.