Back to Cheatsheets

Screen

CLI2024-02-03

Basics

{: .-three-column}

Basics

Options/KeybindDescription
screen -S [name]Start a named session
ctrl+a ctrl+dDetach the current screen and go back to the terminal (screen session will stay running)
screen -ls or
screen -list
List all sessions
screen -r [name]Reattach to a screen (optionally by name)

Screens

KeybindDescription
ctrl+a cCreate a new screen tab inside a screen
ctrl+a [0-9]Switch to a screen tab by number 0 through 9
ctrl+a nGo to the next screen tab
ctrl+a pGo to the previous screen tab
ctrl+a kKill current screen tab

Visual pleasure

KeybindDescription
ctrl+a SSplit a screen horizontally
`ctrl+a`
ctrl+a ctrl+I or
ctrl+a tab
Change screen split
ctrl+a QRemove all screen splits
ctrl+a CClear the current screen tab

Accessibility

KeybindDescription
ctrl+a ARename current screen tab
ctrl+a kKill current screen tab
ctrl+a ctrl+aSwitch to last used screen tab
ctrl+a aSend ctrl+a to current screen tab
ctrl+a ctrl+wSee a list of all screen tabs in the current screen