1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63
| # Screen 的設定檔 .screenrc
# Caption line caption always "%{= R}[ %{=b b}%-w%{=rb db}%>%n %t%{-}%+w%{-b}%<%=%{R}][%{M}%D %M %d %{G}%c%{R}]" # Set the screen status bar hardstatus alwayslastline " %-Lw%{= Bw}%n%f %t%{-}%+Lw %=| %0c:%s " # Set default charset defencoding utf8 # Dynamic title shelltitle '$ |bash' # Set xterm's title hardstatus string "screen: %t" # Close startup message startup_message off
#### 殺掉已經死亡的 Session
screen -wipe
#### 開新的 Session
screen -S [name]
一定要先開這個才能夠用下面的 `-t` 參數 #### 在新開的 Session 裡開類似 Tab 的視窗
screen -t [tab name] #### 退出 Session 或 Tab
直接輸入這個東西就可以了
exit #### 查看目前有多少個 Session
screen -ls ##### 進入到已有的 Session
- 可以用上面指令查看 session 名稱
screen -r [pid / 全個名稱] #### 在 Tab 裡面換 Tab
- 前後視窗
[ctrl + a] 之後再按 [n / p] - 切換到相應數目的視窗 [ctrl + a] 之後再按 [0 - 9]
#### 直接殺掉某個 Session
screen -S [pid] -X quit
|