Screen Command Reference Sheet
Starting and Exiting
screen
- Start a new session.
screen -S session_name
- Start a new session with a name.
screen -ls
- List running sessions/screens.
Ctrl-a d
- Detach from a session.
exit
- Exit screen (terminate session).
Session Management
screen -r
- Reattach to a session.
screen -d -r session_name
- Reattach to a session and detach it elsewhere.
screen -X quit
- Terminate all screen sessions.
Inside Screen
Ctrl-a c
- Create a new window.
Ctrl-a n
- Switch to next window.
Ctrl-a p
- Switch to previous window.
Ctrl-a "
- List all windows.
Ctrl-a d
- Detach from the current session.
Ctrl-a k
- Kill the current window.
Miscellaneous
Ctrl-a A
- Rename the current window.
Ctrl-a [
- Enter copy mode (scrollback buffer and text copy).
Ctrl-a ]
- Paste buffer.
Ctrl-a x
- Lock screen session.
Return to Home