Hits : 7752
Last Edit: 29.07.2015 13:53

Screen – Terminal :: Mini How To 


Contents


Home Page of screen


http://www.gnu.org/software/screen

Manual

http://www.delorie.com/gnu/docs/screen/screen_toc.html

top

Download latest version


ftp://ftp.gnu.org/pub/gnu/screen/

top

Quick Installation


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


top

English Description


Screen is a full-screen window manager that multiplexes a physical terminal between several processes, typically interactive shells. Each virtual terminal provides the functions of the DEC VT100 terminal and, in addition, several control functions from the ANSI X3.64 (ISO 6429) and ISO 2022 standards (e.g., insert/delete line and support for multiple character sets). There is a scrollback history buffer for each virtual terminal and a copy-and-paste mechanism that allows the user to move text regions between windows. When screen is called, it creates a single window with a shell in it (or the specified command) and then gets out of your way so that you can use the program as you normally would. Then, at any time, you can create new (full-screen) windows with other programs in them (including more shells), kill the current window, view a list of the active windows, turn output logging on and off, copy text between windows, view the scrollback history, switch between windows, etc. All windows run their programs completely independent of each other. Programs continue to run when their window is currently not visible and even when the whole screen session is detached from the users terminal.

top

Greek Description


Η εντολή screen είναι ένα πρόγραμμα με το οποίο μπορούμε να ανοίξουμε εικονικές
τερματικές συνδέσεις σε ένα και μόνο τερματικό παράθυρο. Έτσι ενώ έχουμε κάνει
μόνο μία φορά Login μπορούμε να εργαστούμε σε περισσότερες από μία κονσόλες
στο ίδιο σύστημα. Είναι ένα αρκετά χρήσιμο εργαλείο το οποίο μας βοηθάει όταν
κάνουμε πολλές δουλείες ταυτόχρονα στο ίδιο σύστημα ή θέλουμε να παρακολουθήσουμε
τα αποτελέσματα των αλλαγών μας από ένα άλλο τερματικό

top

How to use screen


# screen

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

top

Παραδείγματα Χρήσης

Πως να ανοίξουμε 3 τερματικά μέσα από μία κονσόλα


# 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

Πως κάνουμε re-attach


η παρακάτω εντολή κάνει de-attach πρώτα από την προηγούμενη κονσόλα μας
και έπειτα re-attache του session στην νέα μας κονσόλα.

# screen -d -r

Split


Horizontal

Ctrl + a + S


Vertical

Ctrl + a + |

browsing through windows


ctrl + a + tab

resizing window


eg.

ctrl + a
:resize +10

Πως βλέπουμε ολόκληρο το ιστορικό ενός τερματικού


ctrl + a + esc


top

screenrc


# 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 "^[." next

Ημερομηνία στην τελευταία γραμμή


hardstatus on
hardstatus alwayslastline "%w, %c:%s %d/%m/%Y"

Functions Keys


bindkey -k k7 prev
bindkey -k k8 next
bindkey -k F2 quit


top

Manual


Formatter "highlight/html" not found

top

screen help


ctrl+A+?


Formatter "highlight/html" not found