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