Brief introduction
Perhaps everyone because the putty disconnect causes it to run on the program exit, vim edited the file did not save the trouble. Today we introduce a super-useful Linux screen tool.
Basic Operations Commands
Screen-s < name > #新建一个screen
Screen-r < name > #加载一个screen This will not be afraid of the loss of work content.
screen-d < name > #强制取消指定的screen的关联.
Configuration file
Profile directory:/ETC/SCREENRC per-User Configuration directory ~/.SCREENRC
#set coding#defencoding GBK#encoding UTF-8 GBK#see the startup messagestartup_message offterm linux# #use ' as the Global Key### escape ' # # #set a biger bufferdefscrollback 409600# #设置状态栏hardstatus alwayslastlineshelltitle "$|bash" hardstatus string '%{= kg}[ %y/%m/%d %{g}%c:%s %{g}][%= %{= kw}%?%-lw%?%{y}%n*%f%t %{k}%?%+lw%?%= %{kg}][ %{c} (F8) Screen (F9) title (F10) detach (F11) prev (F12) next %{kg}] ' #hardstatus string '%{= kg}[ %{g}%c:%s %{g}][%= %{= kw}%?%-lw%?%{y}%n*%f%t %{k}%?%+lw%?%= %{kg}][ %{c} ( F8) screen (F9) title (F10) detach (F11) prev (F12) next %{kg}][%{kg} %l %y/%m/% D&NBSP;%{KG}] ' # a short version, can use c-a#hardstatus string '%{= kg}[ %{g}%c:%s %{g}][%=&nBsp;%{= kw}%?%-lw%?%{y}%n*%f%t %{k}%?%+lw%?%= %{g}][%{kg} %d %y/%m/%d %{g}] ' # # # # # Shutdown the noisevbell off#### w to show the window listbind w windowlist -bbind ^w windowlist -b## #initial apps to runscreen -t compile 0screen -t build 1screen -t package 2screen -t tmp 3screen -t test 4select 0# #进行快捷键的绑定bindkey -k k8 screenbindkey -k k9 titlebindkey -k k; detachbindkey -k F1 prevbindkey -k F2 nextbindkey -k k4 quitattrcolor u "-u b" Autodetach on
Configuration effects such as:
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/72/63/wKioL1Xip7eRbjIHAARlAQ04Crw505.jpg "title=" Untitled. png "alt=" wkiol1xip7erbjihaarlaq04crw505.jpg "/>
This article is from the "record Little Harvest Growth" blog, please be sure to keep this source http://gofly.blog.51cto.com/4344767/1689819
Linux screen configuration files are very useful