Linux screen configuration files are very useful

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.