Linux: screen

From RHS Wiki
Jump to navigation Jump to search

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>