Contents
wget -c ftp://ftp.gnu.org/pub/gnu/screen/screen-4.0.3.tar.gz tar zxvf screen-4.0.3.tar.gz cd screen-4.0.3/ ./configure --prefix=/usr/local/ make make install
| Ctrl a c | Creates a new screen session so that you can use more than one screen session at once. |
| Ctrl a n | Switches to the next screen session (if you use more than one). |
| Ctrl a p | Switches to the previous screen session (if you use more than one). |
| Ctrl a d | Detaches a screen session (without killing the processes in it – they continue). |
| Ctrl + a + '' | Εμφάνιση λίστας των τερματικών screen |
# screen
# ssh ebalaskas@ebalaskas.gr
# ctrl+a+c
# ssh ebal@balinux.otenet.gr
# ctrl+a+c
# ssh ebal@ebal.otenet.gr
# ctrl + a + p
# ctrl + a + p
# ctrl + a + n
# ctrl + a + ''
# ctrl + a + A
name_of_terminal# screen -d -r
Ctrl + a + S
Ctrl + a + |
ctrl + a + tab
ctrl + a :resize +10
ctrl + a + esc
# ebal
caption always "%{= 11}%{+b w}Screen: %n | %h %=%t %c"
hardstatus alwayslastline "%-Lw%{= BW}%50>%n%f* %t%{-}%+Lw%<"
activity "Activity in %t(%n)"
bindkey "^[<" eval number !echo $WINDOW-1|bc
bindkey "^[>" eval number !echo $WINDOW+1|bc
bindkey "^[," prev
bindkey "^[." nexthardstatus on hardstatus alwayslastline "%w, %c:%s %d/%m/%Y"
bindkey -k k7 prev bindkey -k k8 next bindkey -k F2 quit
Use: screen [-opts] [cmd [args]] or: screen -r [host.tty] Options: -a Force all capabilities into each window's termcap. -A -[r|R] Adapt all windows to the new display width & height. -c file Read configuration file instead of '.screenrc'. -d (-r) Detach the elsewhere running screen (and reattach here). -dmS name Start as daemon: Screen session in detached mode. -D (-r) Detach and logout remote (and reattach here). -D -RR Do whatever is needed to get a screen session. -e xy Change command characters. -f Flow control on, -fn = off, -fa = auto. -h lines Set the size of the scrollback history buffer. -i Interrupt output sooner when flow control is on. -l Login mode on (update /var/run/utmp), -ln = off. -list or -ls. Do nothing, just list our SockDir. -L Turn on output logging. -m ignore $STY variable, do create a new screen session. -O Choose optimal output rather than exact vt100 emulation. -p window Preselect the named window if it exists. -q Quiet startup. Exits with non-zero return code if unsuccessful. -r Reattach to a detached screen process. -R Reattach if possible, otherwise start a new session. -s shell Shell to execute rather than $SHELL. -S sockname Name this session <pid>.sockname instead of <pid>.<tty>.<host>. -t title Set title. (window's name). -T term Use term as $TERM for windows, rather than "screen". -U Tell screen to use UTF-8 encoding. -v Print "Screen version 3.09.15 (FAU) 13-Mar-03". -wipe Do nothing, just clean up SockDir. -x Attach to a not detached screen. (Multi display mode). -X Execute <cmd> as a screen command in the specified session.
ctrl+A+?
Command key: ^A Literal ^A: a
break ^B b license , removebuf =
clear C lockscreen ^X x reset Z
colon : log H screen ^C c
copy ^[ [ login L select '
detach ^D d meta a silence _
digraph ^V monitor M split S
displays * next ^@ ^N sp n suspend ^Z z
dumptermcap . number N time ^T t
fit F only Q title A
flow ^F f other ^A vbell ^G
focus ^I pow_break B version v
hardcopy h pow_detach D width W
help ? prev ^H ^P p ^? windows ^W w
history { } quit ^\ wrap ^R r
info i readbuf < writebuf >
kill ^K k redisplay ^L l xoff ^S s
lastmsg ^M m remove X xon ^Q q
^] paste .
" windowlist -b
- select -
0 select 0
1 select 1
2 select 2
3 select 3
4 select 4
5 select 5
6 select 6
7 select 7
8 select 8
9 select 9
] paste .