linux screen detach code example
Example 1: screen reattach
screen -d -r
Example 2: create a screen command
screen -S screen_name
Example 3: reattach screen linux
-d -r Reattach a session and if necessary detach it first.
-d -R Reattach a session and if necessary detach or even create it
first.
-d -RR Reattach a session and if necessary detach or create it. Use
the first session if more than one session is available.
-D -r Reattach a session. If necessary detach and logout remotely
first.