- 论坛徽章:
- 0
|
screen -S DL
screen -ls
screen command
Task
Ctrl+a cCreate new
window
Ctrl+a kKill the
current window / session
Ctrl+a wList all
windowsCtrl+a 0-9
Go to a window numbered 0 9, use Ctrl+a w to see numberCtrl+a Ctrl+a
Toggle / switch between the current and previous windowCtrl+a S
Split terminal horizontally into regions and press Ctrl+a c to create
new window thereCtrl+a :resize
Resize region
Ctrl+a :fitFit screen
size to new terminal size. You can also hit Ctrl+a F for the the same task
Ctrl+a :removeRemove /
delete region. You can also hit Ctrl+a
X for the same taks
Ctrl+a tabMove to next
regionCtrl+a D (Shift-d)
Power detach and logout
Ctrl+a dDetach but
keep shell window open
Ctrl-a Ctrl-\Quit screenCtrl-a ?
Display help screen i.e. display a list of commands
你可以加入~/.screenrc
defscrollback 5000
也可以使用-h 5000来定义回滚长度
更可以直接Ctrl+a esc进入copy模式
Ctrl+a i 可以查看当前screen的信息和回滚buffer的大小
Ctrl+a H
会在当前目录下产生screenlog.0
想要查看可以先cp screenlog.0{,.bk}
然后cat screenlog.0.bk,否则会有循环
如果你less或者vim它,会发现它包括颜色的特殊字符,想要去除的话,使用下列命令
perl -ne
's/\x1b[[()=][;?0-9]*[0-9A-Za-z]?//g;s/\r//g;s/\007//g;print' .bk
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u2/88799/showart_2185089.html |
|