Play with GNU Screen
2015-01-08 11:23
246 查看
Why Screen
1. You are using SSH client to connect to a Linux Server, the network die by accident, you lost all your works. Screen resolves this issue by providing a virtual terminal which you can reconnect at any time.2. You are opening a document, meanwhile you want to type some commands according to the document, you have to open and close this document again and again. Screen resolves this issue by providing 2 virtual terminals, you can switch between these terminal
and copy/paste between them.
Install and configure Screen
1. yum install screenPlay with Screen
1.Type screen to create a new Screen,screen -r to connect to an existed screen2.Open a document vi README
3.You want to open the 2nd terminal
Press CTRL+a, then Press c,
Screen creates a new terminal for you and the new terminal is active.
If you want close the 2nd terminal, type
exit
4.You want to go back to 1st terminal,
press CTRL+a, CTRL+a
You cant to list all termical
CTRL+a, "
5.You want to copy/paste some lines,
press CTRL+a, ESC,
press h,j,k,l to move the cursor,
press SPACE to start select
press h,j,k,l to highlight
press SPACE to stop highlight and put the highlight lines to buffer
press CTRL+a, CTRL+a to switch to 2nd terminal
press CTRL+a, ] to paste the lines from the buffer
6. You want to split the screen
CTRL+a, S (Upper case),
to switch from the screen, press CTRL+a, TAB
by default,a new screen does not connect to any terminal , press CTRL+a, n to connect a screen to a terminal
to close a screen, press CTRL+a, X(upper case)
相关文章推荐
- Play with GNU Screen
- fix screen scrolling in ubuntu xterm when used with GNU screen
- [UVa 10673]Play with Floor and Ceil
- HackerRank - Play with words
- 【BZOJ4353】Play with tree,树链剖分线段树
- HDU 3487 Play with Chain 伸展树splay
- ubuntu16.04下安装cx-Oracle报错:error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
- touch-screen with Timer
- Play with lkvm
- [k8s]kubeadm k8s免费实验平台labs.play-with-k8s.com
- 描述算法10673 - Play with Floor and Ceil
- 【BZOJ4355】Play with Sequence
- uva10129(play with words)
- FunDA(5)- Reactive Streams:Play with Iteratees
- uva 10673 Play with Floor and Ceil(简单数论)
- HDOJ 3487 Play with Chain
- linux安装scrapy出错'x86_64-Linux-gnu-gcc' failed with exit status 1
- SymBall: play table tennis with an opponent via your mobile phone
- CSplashScreenEx : a non rectangular splash screen class with Alpha blending
- Teach Your Apps To Play Nicely With Windows Vista User Account Control(转)