Screen¶
Description¶
The screen
command opens a session which will be running even if you disconnect from the cluster.
This is especially useful for time-consuming processes, so that you can leave them running in the background without the fear of accidentally disconnecting and losing all the progress.
You can also open several screens for different processes, which you can detach and attach to them as you like.
Basic commands¶
New screen¶
Creates a new screen with name "custom_name".
Warning
When opening a new screen, this should be done from the login01
node, since this guarantees that the screen will be constantly running and not shut down (which could happen if the screen is opened in one of the other nodes).
List screens¶
List all the created screens.
Detach¶
Detaches from a screen
Re-attach¶
Re-attaches to a detached screen.
Naming a screen session which is already open:
1. Ctrl +A
2. type :sessionname mySessionName
(the semicolon is needed, replace mySessionName by the name of your preference)
Note
If there are multiple screens available, include the number of the screen id (or name) to identify which screen to re-attach.
Exit and kill screen¶
Kill a detached screen¶
Kill all screens¶
Documentation¶
For a more extensive list of commands, check the screen cheatsheet.
You can also check the full documentation.
Reference¶
- Carlos López-Elorduy
- Jordi Deu-Pons
- Miguel Grau