This shows you the differences between two versions of the page.
quick_reference [2017/07/26 18:03] 181.110.117.188 See previous |
quick_reference [2018/01/11 15:01] (current) 128.214.166.186 |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== screen Quick Reference ====== | + | ====== SCREEN Quick Reference ====== |
- | ===== Getting in ===== | + | ===== Getting in test ==== |
| start a new screen session with session name | ''screen -S //<name>//'' | | | start a new screen session with session name | ''screen -S //<name>//'' | | ||
Line 41: | Line 41: | ||
| split display horizontally | ''[[commands:split|C-a S]]'' | | | split display horizontally | ''[[commands:split|C-a S]]'' | | ||
- | | split display vertically | ''[[commands:split|C-a | or C-a V (for the vanilla vertical screen patch)]]'' | | + | | split display vertically | ''[[commands:split|C-a |]]'' or ''[[commands:split|C-a V]]'' (for the vanilla vertical screen patch) | |
| jump to next display region | ''[[commands:focus|C-a tab]]'' | | | jump to next display region | ''[[commands:focus|C-a tab]]'' | | ||
| remove current region | ''[[commands:remove|C-a X]]'' | | | remove current region | ''[[commands:remove|C-a X]]'' | | ||
Line 64: | Line 64: | ||
| create a new window and run //ping example.com// | ''screen -S //<name>// -X screen //ping example.com//'' | | | create a new window and run //ping example.com// | ''screen -S //<name>// -X screen //ping example.com//'' | | ||
| stuff characters into the input buffer\\ using bash to expand a newline character\\ ([[http://lists.gnu.org/archive/html/screen-users/2007-06/msg00012.html|from here]]) | <code bash>screen -S <name> [-p <page>] -X stuff $'quit\r'</code> | | | stuff characters into the input buffer\\ using bash to expand a newline character\\ ([[http://lists.gnu.org/archive/html/screen-users/2007-06/msg00012.html|from here]]) | <code bash>screen -S <name> [-p <page>] -X stuff $'quit\r'</code> | | ||
- | | a full example | <code bash> | + | |
+ | |||
+ | A full example: | ||
+ | |||
+ | <code bash> | ||
# run bash within screen | # run bash within screen | ||
screen -AmdS bash_shell bash | screen -AmdS bash_shell bash | ||
Line 76: | Line 80: | ||
# stuff 'exit\n' to exit bash session | # stuff 'exit\n' to exit bash session | ||
screen -S bash_shell -X stuff $'exit\r' | screen -S bash_shell -X stuff $'exit\r' | ||
- | </code> | | + | </code> |
===== Misc ===== | ===== Misc ===== |