screen -d

Does not start screen, but detaches the elsewhere running screen session

Subcommands

NameDescription
-rReattach a session and if necessary detach it first
-RReattach a session and if necessary detach or even create it first
-RRReattach a session and if necessary detach or create it. Use the first session if more than one session is available