-
# Then open 2 terminals. (I will call them T1 and T2).
-
# In T1, type
-
screen -S toto
-
# A new session of screen will start.
-
# Write some stuff, like ls; echo toto.
-
# Now in T2 type
-
screen -dR toto
-
#And… That’s right, you have detached the screen session of T1 and attached it to T2 =)
-
#In T1 type screen -ls to have a list of screen sessions, screen -d toto to detach the toto session from T2, screen -r toto to
-
# reattach it to T1, etc.