Skip to content

Screen Cheat Sheet

Command Description
Ctrl+A+C Creates a new screen session so that you can use more than one screen session at once
Ctrl+A+N Switches to the next screen session if you have more than one running screen
Ctrl+A+P Switches to the previous screen session if you have more than one running screen
Ctrl+A+D or Ctrl+A then Ctrl+D Detaches a screen session without killing the processes running in it
Ctrl+A then Ctrl+A Switches between screens
exit Kills a screen session permanently

Getting in

Command Description
screen -S <name> Start a new screen session with session name
screen -ls List running sessions/screens
screen -r Attach to a running session
screen -r <name> Attach to a running session with a name

Getting Out

Command Description
screen -d <name> Detach a running session
Ctrl+A+D Detaches a screen session without killing the processes running in it
Ctrl+A then Ctrl+D Detach and logout (quick exit)
screen -S <screen#/name> -X quit Delete a screen while in detached state

Toggling

Command Description
Ctrl+A+C Create new window
Ctrl+A+N or Ctrl+A Change to next window in list
Ctrl+A+P or Ctrl+A Change to previous window in list

Help

Command Description
screen -h See help

Last update: February 22, 2021