Subcommands11 subcommands
screen -d
Does not start screen, but detaches the elsewhere running screen session
screen -d -r
Reattach a session and if necessary detach it first
screen -d -R
Reattach a session and if necessary detach or even create it first
screen -d -RR
Reattach a session and if necessary detach or create it. Use the first session if more than one session is available
screen -D
Does not start screen, but detaches the elsewhere running screen session
screen -D -r
Reattach a session. If necessary detach and logout remotely first
screen -D -R
Attach here and now. In detail this means: If a session is running, then reattach. If necessary detach and logout remotely first
screen -D -RR
Attach here and now. Whatever that means, just do it
screen -r
Resumes a detached screen session
screen -R
Attempts to resume the first detached screen session it finds
screen -dmS
Start as daemon: Screen session in detached mode
OptionsOn screen itself
-a
Force all capabilities into each window's termcap
-A
Adapt all windows to the new display width & height
-c
Read configuration file instead of '.screenrc' <file>
-e
Change command characters <xy>
-fa
Flow control automatic
-h
Set the size of the scrollback history buffer <h>
-i
Interrupt output sooner when flow control is on
-list-ls
Do nothing, just list our SockDir
-m
Ignore $STY variable, do create a new screen session
-O
Choose optimal output rather than exact vt100 emulation
-p
Preselect the named window if it exists <window>
-q
Quiet startup. Exits with non-zero return code if unsuccessful
-s
Shell to execute rather than $SHELL <shell>
-S
Name this session <pid>.sockname instead of <pid>.<tty>.<host> <sockname>
-t
Set title. (window's name) <title>
-T
Use term as $TERM for windows, rather than 'screen' <term>
-U
Tell screen to use UTF-8 encoding
-v
Print 'Screen version 4.00.03 (FAU) 23-Oct-06'
-wipe
Do nothing, just clean up SockDir <match>
-x
Attach to a not detached screen. (Multi display mode)
-X
Execute <cmd> as a screen command in the specified session