Use screen to manage several detachable consoles

Procédure

What is screen?

Screen is a powerful tool that allows you to have several SSH "console windows". With screen, you can keep several consoles running with a single SSH connection.

Installing screen

To install screen, run the following command:

apt-get install screen

Using screen

To create a new :

screen

To detach from this screen without closing it :

Ctrl+A, then press the D key.

To reconnect to this screen later :

screen -x

If you have several screens running, screen -x will not work, and a list of available screens will be displayed. To connect to one of them :

screen -x

You can also name your screen when it is created:

screen -S 'Gitlab

So, when you want to connect to this screen :

screen -x 'Gitlab

If you lose your connection, the commands in the screen will still be executed. You can connect again with SSH and attach yourself to the screen to resume your activities.

help.lws.net/a/1349
Was this article helpful?

Yes

No

Read 16 441 times

Thank you! Feel free to ask questions about our documentation if you would like more information, and help us improve it.

Similar articles

A question about this article?

Ask the LWS team and the community. Answers are published after moderation.

Ask the LWS team and its community a question

GDPR: Controller: LWS-Ligne Web Services. Purpose: moderation and public publication of your question, possible notification of an answer. Legal basis: consent (Art. 6(1)(a) GDPR). Email retention: 90 days after notification, 12 months maximum without an answer. To exercise your rights, see the GDPR section of our Terms and Conditions.