0% found this document useful (0 votes)
13 views

Screen

Screen is a terminal multiplexer that allows multiple programs to run inside a single terminal window. It provides window and screen management capabilities. Some key commands include C-a c to create a new window, C-a n/C-a p to change windows, C-a d to detach from a screen session, and C-a a to send a literal C-a to programs inside the screen. The document provides a quick reference to common screen commands for managing windows, splitting screens, copying text, and more.

Uploaded by

Carlos Chaparro
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views

Screen

Screen is a terminal multiplexer that allows multiple programs to run inside a single terminal window. It provides window and screen management capabilities. Some key commands include C-a c to create a new window, C-a n/C-a p to change windows, C-a d to detach from a screen session, and C-a a to send a literal C-a to programs inside the screen. The document provides a quick reference to common screen commands for managing windows, splitting screens, copying text, and more.

Uploaded by

Carlos Chaparro
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

screen Quick Reference

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.)

the ultimate attach

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

C-a C-\ ( not recommended))

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 k (not recommended)

rename current window

C-a A

Split screen
split display jump to next display region remove current region

C-a S C-a tab C-a X

remove all regions but the current one C-a Q

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

You might also like