screen
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| screen [2009/04/10 07:49] – k2patel | screen [2020/08/10 02:35] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Screen | + | ====== |
| - | ~/ | + | === allow people to attach to my screen |
| - | # allow people to attach to my screen | + | |
| - | <code bash> | + | <code bash | ~/.screenrc> |
| multiuser on | multiuser on | ||
| </ | </ | ||
| - | # allow the following people full control | + | === allow the following people full control |
| <code bash> | <code bash> | ||
| addacl root, | addacl root, | ||
| Line 13: | Line 14: | ||
| </ | </ | ||
| - | # allow everyone readonly access | + | === allow everyone readonly access |
| <code bash> | <code bash> | ||
| aclchg *,!aledesma -rwx “#?” | aclchg *,!aledesma -rwx “#?” | ||
| </ | </ | ||
| - | # setup 10,000 lines of available scrollback — copy/paste | + | === setup 10,000 lines of available scrollback — copy/ |
| <code bash> | <code bash> | ||
| defscrollback 10000 | defscrollback 10000 | ||
| - | |||
| </ | </ | ||
| - | # fix scrollback in putty | + | |
| + | === fix scrollback in putty === | ||
| <code bash> | <code bash> | ||
| termcapinfo xterm* ti@:te@ | termcapinfo xterm* ti@:te@ | ||
| Line 31: | Line 35: | ||
| - | To enter scrollback hit C-a [. A status line will indicate that you've entered copy mode. To exit scrollback mode, hit the escape button. | + | To enter scrollback hit Ctrl+a [ . A status line will indicate that you've entered copy mode. To exit scrollback mode, hit the escape button. |
| Navigating in scrollback mode will be pretty familiar to VI users. Here are some of the most common navigation keys (taken from the screen manpage): | Navigating in scrollback mode will be pretty familiar to VI users. Here are some of the most common navigation keys (taken from the screen manpage): | ||
| Line 60: | Line 64: | ||
| Search is a very useful feature. For example, you could run a script and search for keywords in the output (such as Error), without having to redirect the output. | Search is a very useful feature. For example, you could run a script and search for keywords in the output (such as Error), without having to redirect the output. | ||
| + | |||
| + | === Screen Profile === | ||
| + | This is a decent screen profile I use on my machines. | ||
| + | |||
| + | <code bash | .screenrc> | ||
| + | |||
| + | hardstatus alwayslastline "%H Screen(s): %{b}%w %=%{kG}%C%A | ||
| + | |||
| + | startup_message off | ||
| + | defscrollback 5000 | ||
| + | msgwait 1 | ||
| + | |||
| + | bindkey -k k1 select 1 | ||
| + | bindkey -k k2 select 2 | ||
| + | bindkey -k k3 select 3 | ||
| + | bindkey -k k4 select 4 | ||
| + | |||
| + | bindkey -k k5 screen | ||
| + | bindkey -k k6 title | ||
| + | bindkey -k k7 prev | ||
| + | bindkey -k k8 next | ||
| + | bindkey -k k9 detach | ||
| + | |||
| + | </ | ||
screen.1239349779.txt.gz · Last modified: 2020/08/10 02:29 (external edit)
