How to use GNU screen as a teaching tool





If you have two people logged into the same account from remote locations, they can easily share a screen session (so what one types the other sees and vice versa). To do this:

  • Create a named screen session:
[devel@rice ~]$ screen -d -m -S dbgwindow
  • Attach to the screen session in your terminal window
[devel@rice ~]$ screen -x dbgwindow
  • Have the other person (logged into the same account) also attach to the screen session
[devel@rice ~]$ screen -x dbgwindow
  • At this point both terminal windows should see the same thing.