Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen Revision Vorhergehende Überarbeitung Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
becki:linux:gnu_screen [2011-04-19 12:19] becki |
becki:linux:gnu_screen [2018-06-25 10:15] (aktuell) becki [Configuration] |
||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
- | ====== Gnu Screen Tips == | + | = Gnu Screen Tips |
Screen multiplexes a physical terminal between several shells. | Screen multiplexes a physical terminal between several shells. | ||
- | ===== Configuration == | + | == Info sources |
- | Add | + | # [[http://www.gnu.org/software/screen/manual/html_node|Screen User's Manual]] |
+ | # [[http://www.tutorials.de/linux-tutorials/151906-einfuehrung-screen.html|Einführung in Screen]] | ||
- | shell -bash | + | == Configuration |
- | bindkey -d ^@ stuff ^H | + | |
+ | Append | ||
+ | |||
+ | {{{ | ||
+ | shell -bash | ||
+ | shell -$SHELL #alternativ, from ~./screenrc | ||
+ | bindkey -d ^@ stuff ^H | ||
+ | }}} | ||
to ''~/.screenrc'' or to ''/etc/screenrc'' to automatically get a login shell and to enable the Backspace key. [[http://www4.informatik.uni-erlangen.de/~jnweiger/screen-faq.html|Login source]], [[http://www.deadlock.it/linux/fix-gnu-screen-backspace-misinterpretation/|Backspace source]] | to ''~/.screenrc'' or to ''/etc/screenrc'' to automatically get a login shell and to enable the Backspace key. [[http://www4.informatik.uni-erlangen.de/~jnweiger/screen-faq.html|Login source]], [[http://www.deadlock.it/linux/fix-gnu-screen-backspace-misinterpretation/|Backspace source]] | ||
- | ===== Commands == | + | Note: The already existing {{{~./screenrc}}} file probably comes from {{{/etc/skel/.screenrc}}} |
+ | == Commands | ||
- | <code> | + | {{{ |
- | C-a c Establish a new window | + | C-a ? display a list of the available screen commands and their bindings |
+ | C-a v show screen version. Can be used to check if screen is running | ||
+ | |||
+ | C-a S Split the current region horizontally into two new ones | ||
+ | C-a | (Sometimes) split the current region vertically into two new ones | ||
+ | C-a <Tab> Move the input focus to the next region | ||
+ | C-a X Kill the current region. | ||
+ | |||
+ | C-a c Establish a new window (termial) | ||
C-a n next window | C-a n next window | ||
C-a p provious window | C-a p provious window | ||
C-a " window list | C-a " window list | ||
C-a K kill current window | C-a K kill current window | ||
- | |||
- | C-a S Split the current region into two new ones | ||
- | C-a <Tab> Move the input focus to the next region | ||
- | C-a c Establish a new window (in the new region) | ||
C-a [ Enter copy/scrollback mode. Scroll with arrow keys | C-a [ Enter copy/scrollback mode. Scroll with arrow keys | ||
C-a ] Paste | C-a ] Paste | ||
- | </code> | + | }}} |
- | ===== Serial communication == | + | == Serial communication |
Establish serial connection with eg: ''screen /dev/ttyUSB1 115200'' | Establish serial connection with eg: ''screen /dev/ttyUSB1 115200'' | ||
Zeile 35: | Zeile 48: | ||
See also: [[man>screen#heading9|Window Types]] | See also: [[man>screen#heading9|Window Types]] | ||
- | ===== Info sources == | + | == Session Management |
- | * [[http://www.tutorials.de/linux-tutorials/151906-einfuehrung-screen.html|Einführung in Screen]] | + | {{{ |
- | * [[http://www.gnu.org/software/screen/manual/html_node|Screen User's Manual]] | + | C-a d detach screen session. Started programs continue |
+ | screen -ls prints a list of pid.tty.host strings identifying your screen sessions | ||
+ | screen -R reattach detachted screen session | ||
+ | }}} | ||