Difference between revisions of "Linux: screen"

From RHS Wiki
Jump to navigation Jump to search
Line 9: Line 9:
 
  ctrl + a    d        # deatach terminal
 
  ctrl + a    d        # deatach terminal
 
  screen -r            # recover deatached terminal, works from other computer too!!
 
  screen -r            # recover deatached terminal, works from other computer too!!
 +
 +
If the connection to a screen is broken, it migth stay attached, to deatach it:
 +
screen -d <screen_id>

Revision as of 14:18, 18 December 2017

Screen Multiple Terminals

screen #start screen
ctrl + a    c        # Create a new terminal
ctrl + a    0        # switch to original terminal
ctrl + a    ctrl + a # switch to previous terminal
ctrl + a    ctrl + n # switch to next terminal
ctrl + a    ctrl + p # switch to previous terminal
exit                 # close terminal
ctrl + a    d        # deatach terminal
screen -r            # recover deatached terminal, works from other computer too!!

If the connection to a screen is broken, it migth stay attached, to deatach it:

screen -d <screen_id>