http://www.ibm.com/developerworks/cn/linux/l-cn-screen/
使用上面介紹的很多了
下面給一份使用的配置
在根目錄下建立一個檔案 .screenrc
#=============================================================
# ~/.screenrc## skip the startup messagestartup_message off ## Automatically detach on hangup.autodetach on## If a screen dies, don't freeze the whole screen waiting for it.nonblock on## UTF-8 is necessary.#defutf8 on## Change default scrollback value for new windows: scrollback 10000defscrollback 10000## start with visual bell as defaultvbell off vbell_msg "Bell on %t (%n)"## 在最下一行顯示視窗列表和時鐘hardstatus onhardstatus alwayslastline#hardstatus string "%{.bW}%-w%{.rY}%n %t%{-}%+w %=%{..G} %H(%l) %{..Y} %Y/%m/%d %c:%s "hardstatus string "%{.bw}%-w%{.ry}%n %t%{-}%+w %=%{..g} %H(%l) %{..y} %Y/%m/%d %c "#hardstatus string "%{.bW}%-w%{.rY}%n %t%{-}%+w %=%{..G} "#hardstatus string "%{.bW}%-w%{= rY}%50>%n %t%{-}%+w%<"# 關閉錯誤提示vbell off ## default windows 新起的時候預定義2個視窗screen -t shell 0screen -t vim 1#### 按 Ctrl-Z w 或 Ctrl-Z Ctrl-W 顯示視窗列表bind w windowlist -b#bind ^w windowlist -b#### 定義screen的功能鍵為Ctrl-Z。向終端輸入Ctrl-Z時應按 Ctrl-Z z。#escape ^Zzbindkey -k k5 screen #F5建立bindkey -k k6 title #F6改名稱
bindkey -k k9 detach #F9
bindkey -k F1 prev #F11 F12前後切換
bindkey -k F2 next #
#=========================================================
screen -ls 列出當前有那些會話
screen -r sessionid 串連會話