最後更新: 2018-07-27
目錄
- 前言
- 功能介紹
- 一般設定
- 基本應用
- Hotkey 與 Command
- 一窗多用
- 分割屏幕
- Copy & Paste
- Log 下自己的一舉一動
- 共用 session
- login 後自動執行已有的 session
- lock & logout
- In screen ssh another Linux
- re-attach to my session after a lost connection
- run program(de-attach screen run script)
- Other Info.
- xterm 與 screen
- 其他選擇
前言
閒話不多說, 看圖就知 screen 用來做什麼 !!
(圖1)
功能介紹
- 在一個物理終端上獲得多個虛擬終端的效果 (終端是指 tty, pts 之類的東西)
- 用 SSH 時不怕斷線 (例如當 zip file 時斷線. 由於 zip 不是 daemon 來, 所以線一斷, 它就停)
- logout 後仍可繼續執行 shell 程式, 令它們猶如 daemon (這是可看成特別的斷線情況)
- 在沒有 mouse 的 terminal 上實現 copy & paste
- 實現 scroll 功能 (在看較長的 output 時不用 less 了, 如: ifconfig | less )
由於 screen 功能強大, 所以指令眾多 !!
起手用到時, 會常常忘記指令 ....
那大家可以嘗試在 screen 環境內按入 "ctrl-a ?" 組合鍵又或 "screen -h" 求助
看看能不能找回一點點回憶 =, =""" 呵呵