View

screen

  1. # Then open 2 terminals. (I will call them T1 and T2).
  2. # In T1, type
  3. screen -S toto
  4. # A new session of screen will start.
  5. # Write some stuff, like ls; echo toto.
  6. # Now in T2 type
  7. screen -dR toto
  8. #And… That’s right, you have detached the screen session of T1 and attached it to T2 =)
  9. #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
  10. # reattach it to T1, etc.

You may also like