centos 安装yum install screen
修改/etc/screenrc文件#支持滚动条/shift+PgUp|PgDn翻页项termcapinfo xterm ti@:te@termcapinfo xterm-color ti@:te@#添加底栏hardstatus onhardstatus alwayslastlinehardstatus string "%{.bW}%-w%{.rY}%n %t%{-}%+w %=%{..G} %H(%l) %{..Y} %Y/%m/%d %c:%s " |
#自定义快捷键
# This is how one can set a reattach password:# password ODSJQf.4IJN7E # “1234″# bind F5 to create a new screenbindkey -k k5 screen# bind F6 to “move to previous window”bindkey -k k6 prev# bind F7 to “move to next window”bindkey -k k7 next# bind F8 to kill current screen windowbindkey -k k8 kill# bind F9 to detach screen sessionbindkey -k k9 detach# bind F12 to modify screen titlebindkey -k F2 title