This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
quick_reference [2016-09-14 23:29] 76.21.80.77 |
quick_reference [2021-02-19 19:39] (current) |
||
---|---|---|---|
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 ===== | ||
- | All screen commands are prefixed by an escape key, by default '' | + | All screen commands are prefixed by an escape key, by default '' |
- | (that' | + | (that' |
- | to the programs in screen, use '' | + | to the programs in screen, use '' |
===== Getting out ===== | ===== Getting out ===== | ||
- | | detach | '' | + | | detach | '' |
- | | detach and logout (quick exit) | '' | + | | detach and logout (quick exit) | '' |
- | | exit screen | '' | + | | exit screen | '' |
- | | 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 ===== | ||
- | | create new window | '' | + | | create new window | '' |
- | | change to last-visited active window | '' | + | | change to last-visited active window | '' |
- | | change to window by number | '' | + | | change to window by number | '' |
- | | change to window by number or name | '' | + | | change to window by number or name | '' |
- | | change to next window in list | '' | + | | change to next window in list | '' |
- | | change to previous window in list | '' | + | | change to previous window in list | '' |
- | | see window list | '' | + | | see window list | '' |
- | | show window bar | '' | + | | show window bar | '' |
| close current window | | close current window | ||
- | | kill current window | + | | kill current window |
- | | kill all windows | + | | kill all windows |
- | | rename current window | '' | + | | 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 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 | '' | + | | monitor window for activity | '' |
- | | paste | '' | + | | monitor window for silence |
- | | monitor window for activity | '' | + | | enter digraph (for producing non-ASCII characters) | '' |
- | | monitor window for silence | + | | lock (password protect) |
- | | enter digraph (for producing non-ASCII characters) | '' | + | | enter screen command |
- | | lock (password protect) | + | | enable logging in the screen session |
- | | enter screen command | + | |
- | | enable logging in the screen session | C-t H | | + | |
- | | 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/ | ||
- |