Difference between revisions of "Linux: screen"
Jump to navigation
Jump to search
Rafahsolis (talk | contribs) (Created page with "== 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 pre...") |
Rafahsolis (talk | contribs) |
||
| (3 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
== Screen Multiple Terminals == | == Screen Multiple Terminals == | ||
screen #start screen | screen #start screen | ||
| − | ctrl + a c # Create a new terminal | + | ctrl + a c # Create a new terminal |
| − | ctrl + a 0 # switch to original terminal | + | ctrl + a 0 # switch to original terminal |
ctrl + a ctrl + a # switch to previous terminal | ctrl + a ctrl + a # switch to previous terminal | ||
ctrl + a ctrl + n # switch to next terminal | ctrl + a ctrl + n # switch to next terminal | ||
| 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> | ||
| + | == Scroll up/down == | ||
| + | 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 == | ||
| + | screen -aAxR -S screen_name | ||
Latest revision as of 09:37, 3 July 2018
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