screen: Keep processes running despite a dropped donnection - Xorfor/Camera GitHub Wiki
Installation
The installation of screen
is very easy, run:
sudo apt install screen
Usage
With screen you can create one or more sessions in your current SSH terminal. Just run:
screen
to start it. This creates a screen session or window (although you don't see it as such) in your current SSH terminal. The most important screen
commands begin with CTRL
a to distinguish them from normal shell commands.
CTRL-c
- Creates a new screen session so that you can use more than one screen session at once.
CTRL-n
- Switches to the next screen session (if you use more than one).
CTRL-p
- Switches to the previous screen session (if you use more than one).
CTRL-d
- Detaches a screen session (without killing the processes in it - they continue).
To close a screen session where all tasks are finished you can type:
exit