This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
quick_reference [2016-09-15 01:11] asciiphil Revert change of "C-a" to "C-t". The default escape key is still C-a. |
quick_reference [2018-01-11 15:01] 128.214.166.186 |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== | + | ====== |
- | How to Navigate, copy & paste content? | + | |
- | within screen sessions: | + | ===== Getting in test ==== |
- | Cntl a + [ : To start navigation using up/down arrow | + | |
- | Press Space bar: To select content starting position | + | |
- | Press Space bar again: To select a block of content | + | |
- | Cntl a + ] : To paste the selected content | + | |
- | + | ||
- | ===== Getting in ===== | + | |
| start a new screen session with session name | '' | | start a new screen session with session name | '' | ||
| list running sessions/ | | list running sessions/ | ||
| attach to a running session | '' | | attach to a running session | '' | ||
- | | ... to session | + | | attach |
| the " | | the " | ||
- | |||
- | | detach a running session | '' | ||
===== Escape key ===== | ===== Escape key ===== | ||
Line 31: | Line 22: | ||
| force-exit screen | '' | | force-exit screen | '' | ||
| getting out of the screen session | exit | | | getting out of the screen session | exit | | ||
- | |||
- | ===== Help ==== | ||
- | |||
- | | See help | '' | ||
- | |||
- | The [[man: | ||
===== Window Management ===== | ===== Window Management ===== | ||
Line 56: | Line 41: | ||
| split display horizontally | | split display horizontally | ||
- | | split display vertically | + | | split display vertically |
| jump to next display region | '' | | jump to next display region | '' | ||
| remove current region | | remove current region | ||
| remove all regions but the current one | '' | | remove all regions but the current one | '' | ||
+ | |||
+ | ===== Clipboard and Navigation ===== | ||
+ | |||
+ | | freely navigate buffer | '' | ||
+ | | toggle selection to copy | '' | ||
+ | | paste | '' | ||
+ | |||
+ | ===== Help ===== | ||
+ | |||
+ | | See help | '' | ||
+ | |||
+ | The [[man: | ||
===== Scripting ===== | ===== Scripting ===== | ||
- | # the screen | + | |
+ | To any session //name//, | ||
| send a command to a named session | | send a command to a named session | ||
| create a new window and run //ping example.com// | | create a new window and run //ping example.com// | ||
| stuff characters into the input buffer\\ using bash to expand a newline character\\ ([[http:// | | stuff characters into the input buffer\\ using bash to expand a newline character\\ ([[http:// | ||
- | | a full example | + | |
+ | |||
+ | A full example: | ||
+ | |||
+ | <code bash> | ||
# run bash within screen | # run bash within screen | ||
screen -AmdS bash_shell bash | screen -AmdS bash_shell bash | ||
Line 78: | Line 80: | ||
# stuff ' | # stuff ' | ||
screen -S bash_shell -X stuff $' | screen -S bash_shell -X stuff $' | ||
- | </ | + | </ |
===== Misc ===== | ===== Misc ===== | ||
| redraw window | | redraw window | ||
- | | enter copy mode | '' | ||
- | | paste | '' | ||
| monitor window for activity | '' | | monitor window for activity | '' | ||
| monitor window for silence | | monitor window for silence | ||
| enter digraph (for producing non-ASCII characters) | '' | | enter digraph (for producing non-ASCII characters) | '' | ||
- | | lock (password protect) | + | | lock (password protect) |
| enter screen command | | enter screen command | ||
- | | enable logging in the screen session | C-a H | | + | | enable logging in the screen session |
- | | getting out of the screen session | exit | | + | |
===== Scrollback-buffer ===== | ===== Scrollback-buffer ===== | ||
Line 98: | Line 96: | ||
In copy mode, one can navigate the scrollback buffer in various ways: | In copy mode, one can navigate the scrollback buffer in various ways: | ||
- | | half page up | C-u | | + | | half page up | C-u | |
- | | half page down | C-d | | + | | back | C-b | | forward | C-f | |
| cursor left/ | | cursor left/ | ||
- |