Show Menu
Cheatography

GNU Screen Cheat Sheet (DRAFT) by

A cheat sheet for the GNU screen utility. The command convention within a screen session is: CTRL+a CMD This syntax means hit the Control key and lowercase *a* simultaneously, followed by the command shortcut.

This is a draft cheat sheet. It is a work in progress and is not finished yet.

Basic Screen Options

screen
Launch a new, unnamed screen session
screen -S name
Launch a new screen session called name
screen -ls
List all running screen sessions
screen -r name
Connect to a screen session called name
CTRL+a :
Exit all applic­ations and close screen session
CTRL+a
Detach from a screen session
CTRL+a d name
Detach from the screen session name
CTRL+a ?
View screen help

Other screen options

CTRL+a [
Enter copy mode
CTRL+a ]
Paste
CTRL+a M
Monitor a window for activity
CTRL+a _
Monitor a window for silence
CTRL+a CTRL+V
Enter a digraph (non-ASCII character)
CTRL+a H
Enable logging for the screen session
CTRL+a ESC
Enable vertical scrolling for mouse usage (also works with arrow keys)
 

Managing screen windows

CTRL+a c
Create a new screen window
CTRL+a CTRL+a
Return to previous active window
CTRL+a "
Display screen window list
CTRL+a n
Change to the next window in the list
CTRL+a p
Change to the previous window in the list
CTRL+a number
Change to window by number, for 0-9
CTRL+a ' name OR number
Change to window by name OR by number
CTRL+a w
Display window bar if not visible
CTRL+a A
Rename current window

Split Screen Management

CTRL+a S
Split window horizo­ntally
CTRL+a |
Split window vertically
CTRL+a TAB
Move to the next display region
CTRL+a X
Remove the current region
CTRL+a Q
Remove all regions except for the current region