Labels

hpunix (63) marathi kavita (52) linux (21) solaris11 (10) AWS (5) numerology (5)

Tuesday, September 16, 2014

Screen utility uses + Unix

Screen utility uses:

The screen utility allows us to use multiple windows (virtual VT100 terminals) in Unix.

create a .screenrc file in your home directory

[linuxadmin]:/home/kiran> cat .screenrc
password LHeWP8H4CO4mY
defscrollback 10000
hardstatus alwayslastline "%{= d}%{r}[ %D %M %d ]%{-}%=%-Lw%{BW}%n*%f %t%{-}%+Lw %=%{g}[ %C %A %Y ]%{-}"


then run this utility by below command:

#screen


Note : Every screen command starts with Ctrl-a.

Various options:

Ctrl-a c Create new window (shell)

Ctrl-a k Kill the current window

Ctrl-a 0-9 Go to a window numbered 0-9

Ctrl-a n Go to the next window

Ctrl-a p Go to the previous window

Ctrl-a Ctrl-a Toggle between the current and previous window

Ctrl-a [ Start copy mode

Ctrl-a ] Paste copied text

Ctrl-a ? Help (display a list of commands)

Ctrl-a Ctrl-\ Quit screen

Ctrl-a D (Shift-d) Power detach and logout

Ctrl-a d Detach but keep shell window open



Thanks...
Kiran Jadhav


**Let's Share our knowledge and keep visiting here**

No comments:

Post a Comment