Screen command benefits
- Can be used to launch multiple shells from a single SSH session.
- Detach and re-attach from multiple ssh session.
- Running process which can take more time and need session to be kept alive.
- To keep the session alive without any network disruptions.
The command to create a screen session is
screen -t <screen name> -S <socket file name>
To detach a screen session
ctrl+a + d
To list the screen sessions
screen -ls
To reattach the screen session
screen -r <pid from list>