screen -d -RR <identifier>

Reattach a session and if necessary detach or create it. Use the first session if more than one session is available

Arguments

NameDescription
identifier