GNU screen introduction
Screen is a full-screen window manager that multiplexes a physical terminal between several processes, typically interactive shells.
Screen command reference
Starting and exiting:
open screen:
$ screen
reattach screen:
$ screen -r
ultimate attach (Attaches to a screen session. If the session is attached elsewhere, detaches that other display. If no session exists, creates one. If multiple sessions exist, uses the first one.):
$ screen -dRR
multiview/sharing a session:
$ screen -x
list screen sessions:
$ screen -ls
detach screen:
C-a d
Killing windows:
C-a K
Killing all windows and exit:
C-a ctrl-\
Managing windows:
create a new windows:
C-a c
find out how much windows are opened:
C-a w
another way to find out:
C-a "
name the current window:
C-a A
switch to the next window:
C-a n C-a <space>
switch to the previous window:
C-a p
jump between windows by their id (number).:
C-a 1
Managing regions:
split the window:
C-a S
change focus among regions:
C-a <tab>
make the current region the only visible one
C-a Q
kill off the current region:
C-a K
Multiple users:
enable multiuser mode:
C-a :multiuser on
give another user permission to connect:
C-a :aclchg david +r "#".
Misc:
get online help:
C-a ?
enter copy mode:
C-a [
paste:
C-a ]
enter screen command:
C-a :
lock current screen session:
C-a x
monitor window for activity:
C-a M
monitor window for silence:
C-a _
enter digraph:
C-a C-v
Customize screen
My ~/.screenrc:
hardstatus alwayslastline '%{= mK}%-Lw%{= KW}%50>%n%f* %t%{= mK}%+Lw%< %{= kG}%-=%D %d %M %Y %c:%s%{-}'
screen -t bash bash
screen -t irssi irssi