Sharing your Session
Assuming you start a screen session using
screen -S david
Ask your partner to connect using (assuming they are logged in using the same user account):
screen -x david
Now it’s simply magical. Multiple persons can type and work on the same terminal – it works best when you’re coordinating over the phone. Note that the dimensions of your terminal output will be the same for every user – to change it, press Ctrl–A and then capital F. This will make the screen output fit your current terminal size, and change it to that size for every connected user.
Detaching from a Screen Session
Important: To detach from the screen session so that you can resume later, simply close the window. If you type
exit, you’ll end up terminating the screen session and the processes running within.