Screen
Commands
- open a session with name:
screen -S <session_name>
- list sessions:
screen -ls
- resume detached session:
screen -r <session_name>
Recover a ’lost’ Screen Session
If your remote connection crashed while you had an open screen session you have to detach it before you can reconnect. You do it this way:
Reattach a session and if necessary detach it first.
screen -rd <session_name>
Rename a session
To rename a session do:
- Attach to the session in question
- Press
ctrl
+a
- Type
:sessionname <your_session_name>
– yes, the first colon is needed there, no extra spaces - Type
enter
Last modified July 16, 2022: fix headlines in linux doc (8863fae)