Screen
Screen
Getting in
start a new screen session with session screen -S <name> name list running screen -ls sessions/screens attach to a running screen -r session to name session with
screen -r <name> screen -dRR (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.)
Escape key
All screen commands are prefixed by an escape key, by default C-a (that's Control-a, sometimes written ^A ). To send a literal C-a to the programs in screen, use C-a a .
Getting out
detach
C-a d
exit all of the programs in screen.
detach and logout (quick exit) C-a D D exit screen force-exit screen
Help
See help C-a ? (lists keybindings)
The man page is the complete reference, but it's very long.
Window Management
create new window change to last-visited active window change to window by number
C-a c C-a C-a (commonly used to flip-flop between two windows) C-a <number> (only for windows 0 to 9) C-a n or C-a <space> C-a p or C-a <backspace> C-a " (allows you to select a window to change to) C-a w (if you don't have window bar)
Close all applications in the current window (including shell)
change to window by number or name C-a ' <number or title> change to next window in list change to previous window in list see window list show window bar close current window kill current window
C-a A
Split screen
split display jump to next display region remove current region
Misc
redraw window enter copy mode paste monitor window for activity monitor window for silence
C-a C-l C-a [ (also used for viewing scrollback buffer) C-a ] C-a M C-a _ C-a x C-a :
quick_reference.txt ! Last modified: 2010/01/27 14:39 by asciiphil
enter digraph (for producing non-ASCII characters) C-a C-v lock (password protect) display enter screen command