screen -d -R <identifier>

Reattach a session and if necessary detach or even create it first

Arguments

NameDescription
identifier