This shows you the differences between two versions of the page.
quick_reference [2017-05-16 13:20] 91.225.165.141 |
quick_reference [2021-02-19 19:39] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== | + | ====== |
- | How to Navigate, copy & paste content? | + | |
- | + | ||
- | within screen sessions: | + | |
- | 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 ===== | ===== Getting in ===== | ||
Line 13: | Line 6: | ||
| 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 24: | Line 15: | ||
to the programs in screen, use '' | to the programs in screen, use '' | ||
- | XYETA | + | ===== Getting out ===== |
- | ===== Help ==== | + | | detach | '' |
- | + | | detach and logout (quick exit) | '' | |
- | | See help | '' | + | | exit screen |
+ | | force-exit screen | '' | ||
+ | | getting out of the screen session | exit | | ||
- | The [[man: | + | ===== Window Management ===== |
- | XYETA | + | | create new window | '' |
+ | | change to last-visited active window | '' | ||
+ | | change to window by number | '' | ||
+ | | change to window by number or name | '' | ||
+ | | change to next window in list | '' | ||
+ | | change to previous window in list | '' | ||
+ | | see window list | '' | ||
+ | | show window bar | '' | ||
+ | | close current window | ||
+ | | kill current window | ||
+ | | kill all windows | ||
+ | | rename current window | '' | ||
===== Split screen ===== | ===== Split screen ===== | ||
| 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 59: | 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 79: | 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 | |
- | | back | C-b | | + | |
- | | forward | C-f | | + | |
| cursor left/ | | cursor left/ | ||
- |