screen: cheapsheet
After logging in, type screen
Screen command What it does
screen Start a new session
screen -list List all your screen sessions
screen -d -r
screen -d -r [sessionID]
Re-attach previously detached (or unintentionally
disconnected) session – can be done upon next login
Ctrl-a c Create a new window (shell) in a session; can be
repeated multiple times
Ctrl-a n Ctrl-a p Switch to next (n), previous (p) window within a session
Ctrl-a “ List all windows in a session, switch to one
Ctrl-a d Detach a session (all windows will continue running)
Ctrl-d Exit form current window (or from whole session, if in
last window)
screen -X -S [name] quit Kill session “name” (obtained from screen -list)
For more features/functionality – type screen –h or Ctrl-a ? (within session)
Sessions are persistent – will survive connection problems, turning off laptop, etc.
Most useful screen commands: