User Tools

Site Tools


screen

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
screen [2021/03/16 21:34] – [Introduction] hc9screen [2021/03/16 21:36] – [Starting Screen, detaching and reattaching] hc9
Line 25: Line 25:
 ''$ screen'' ''$ screen''
  
-When you run it, a window with some copyright and some other info will show up, with [Press Space or Return to end.] at the bottom. OK, as it says, you can now press Space or Enter. You will then see your shell prompt and nothing else. That's fine: you can now run your programs as usual, the difference is that they will run under a Screen session. You can detach it by typing **CTRL-a d**. Screen will keep your session running. Now if you logout, then log back in, and type:+When you run it, a window with some copyright and some other info will show up, with "[Press Space or Return to end.]at the bottom. OK, as it says, you can now press "Spaceor "Enter". You will then see your shell prompt and nothing else. That's fine: you can now run your programs as usual, the difference is that they will run under a Screen session. You can detach it by typing **CTRL-a d**. Screen will keep your session running. Now if you logout, then log back in, and type:
  
 ''$ screen -r'' ''$ screen -r''
Line 35: Line 35:
 ''$ screen -d -r'' ''$ screen -d -r''
  
-The -d flag will detach Screen, while -r will reattach. There are various types of detach and  flags. For instance, if you type the previous command and there was no screen session to be resumed, you'll get a There is no screen to be detached. message. In this case you'll probably need:+The "-dflag will detach Screen, while "-rwill reattach. There are various types of "detachand  flags. For instance, if you type the previous command and there was no screen session to be resumed, you'll get a "There is no screen to be detached.message. In this case you'll probably need:
  
 ''$ screen -d -R'' ''$ screen -d -R''
screen.txt · Last modified: 2021/03/16 21:39 by hc9