Linux: screen

From RHS Wiki
Revision as of 09:37, 3 July 2018 by Rafahsolis (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Screen Multiple Terminals[edit]

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>

Scroll up/down[edit]

ctrl+A Esc --> Move up/down with the arrow keys (↑ and ↓).
When done, hit q or Esc

(If instead of q or Escape you hit Enter or Return and then move the cursor, you will be selecting text to copy, and hitting Enter or Return a second time will copy it. Then you can paste with C-a followed by ].)

Multiple terminals attached to one screen[edit]

screen -aAxR -S screen_name