Using screen¶
- 
Start a Screen session
Simply type
screenand press Enter. This will start a new session.To create a named session instead, use
screen -S mysession. - 
Detach from a session
Press
Ctrl-Afollowed byD. The session will continue running in the background. - 
List active sessions
Run
screen -ls - 
Re-attach to a session
- 
Use
screen -rto attach to resume the last session. - 
Use
screen -r mysessionto attach to a named session. - 
If you got kicked out of the system, the session may still be attached. Use
screen -D -r mysessionto force-detach, then re-attach to the session. (No name is needed if there is only one session.) 
 -