1. 创建一个screen 会话
screen -R zengtai.csm
ctra +a c --> 创建一个窗口
ctra +a shift +a --> 给当前窗口修改名字 + enter 保存名字
2. 创建一个screen 会话后需要做一些基本的设置,比如在下面地址栏显示所有窗口和名字
touch .screenrc;里面设置下面的内容:
ivbell off
defscrollback 8192
#caption always "%?%F%{wb}%? %L=%-Lw%45>%{+b bw}%n%f* %t%{-}%+Lw%-0<"
## %?%F%{wb}%? : set the current window title's color to white/blue, white is bg, blue is fg
#
autodetach on
caption always "%{wb} %-w%{+b bw}%n %t%{-}%+w"
#caption always "%{=b kR} %-w%{-b bg}%n %t%{-}%+w"
encoding utf8 utf8