Table of Contents
1 OS commands
| screen -ls | session list |
| screen -r [session] | attach to active session |
| screen -x | attach multiply users to active session |
| screen -dmS [session] [app] | run app without start screen |
2 Screen Commands
| COMMAND | DESCRIPTION |
|---|---|
| C-a d | deatach |
| C-a " | window list |
| C-a w | window list |
| C-a :number [0-9] | change window nr |
| C-a A | change window name |
| C-a shift+n | show window nr |
| C-a c | new window |
| C-a k | kill window |
| C-a [0-9] | go to window nr |
| C-a [SPC] | next window |
| C-a [BPC] | previous window |
| C-a C-a | last active window |
| C-a [ESC] | turn on mode scrollback/copy |
| [SPC] | start/stop buffer copy |
| C-a ] | paste from buffer |
| C-a ? | help |
| C-a : | command line |
3 .screenrc
startup_message off
deflogin off
defnonblock 5
termcapinfo xterm*|rxvt* 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'
termcapinfo xterm*|rxvt* ti@:te@
#defbce "on"
vbell off
altscreen on
bindkey -k F1 prev
bindkey -k F2 next
bind ^v screen -t ROOT su -
hardstatus alwayslastline
hardstatus string '%{= KM}[ %{G}%H %{M}][%= %{c}%?%-Lw%?%{C}(%{C}%n*%f%t%{C})%{c}%?%+Lw%?%? %=%{M}][%{G} %c %{M}]'
defscrollback 1024
screen 0