java screen的配置詳解及注意事項(xiàng)
java screen的配置詳解及注意事項(xiàng)
# Set default encoding using utf8 defutf8 on ## 解決中文亂碼,這個(gè)要按需配置 defencoding utf8 encoding utf8 utf8 #兼容shell 使得.bashrc .profile /etc/profile等里面的別名等設(shè)置生效 shell -$SHELL #set the startup message startup_message off #term linux ## 解決無(wú)法滾動(dòng) termcapinfo xterm|xterms|xs ti@:te=\E[2J # 屏幕緩沖區(qū)行數(shù) defscrollback 10000 # 下標(biāo)簽設(shè)置 caption always "%{=u .G} %-w%<%{=ub .y}%n %t%{=u .G}%+w " hardstatus alwaysignore hardstatus alwayslastline "%{= .K} [%l]%<%=%{= .W}@%H %=%{= .y} %Y/%m/%d%{= .m} %C %A" #關(guān)閉閃屏 vbell off #Keboard binding bindkey ^[d prev bindkey ^[f next # bind Alt`~= to screen0~12 bindkey "^[`" select 0 bindkey "^[1" select 1 bindkey "^[2" select 2 bindkey "^[3" select 3 bindkey "^[4" select 4 bindkey "^[5" select 5 bindkey "^[6" select 6 bindkey "^[7" select 7 bindkey "^[8" select 8 bindkey "^[9" select 9 bindkey "^[0" select 10 bindkey "^[-" select 11 bindkey "^[=" select 12 # bind F5 to create a new screen bindkey ^[n screen # bind F6 to detach screen session (to background) bindkey -k k6 detach # bind F7 to kill current screen window bindkey -k k7 kill # bind F8 to rename current screen window bindkey -k k8 title
啟動(dòng)screen:screen
列出screen: screen -ls
恢復(fù)screen:screen -rU
-U Run screen in UTF-8 mode,加上-U可以保證恢復(fù)時(shí)不出現(xiàn)中文亂碼
感謝閱讀,希望能幫助到大家,謝謝大家對(duì)本站的支持!
相關(guān)文章
jdk中keytool的使用以及如何提取jks文件中的公鑰和私鑰
JKS文件由公鑰和密鑰構(gòu)成利用Java?Keytool工具生成的文件,它是由公鑰和密鑰構(gòu)成的,下面這篇文章主要給大家介紹了關(guān)于jdk中keytool的使用以及如何提取jks文件中公鑰和私鑰的相關(guān)資料,需要的朋友可以參考下2024-03-03SpringMVC五大組件與執(zhí)行原理分析總結(jié)
這篇文章主要介紹了SpringMVC五大組件與執(zhí)行原理分析總結(jié),文中通過(guò)示例代碼介紹的非常詳細(xì),對(duì)大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(xué)習(xí)吧2023-01-01PowerJob的TransportServiceAware工作流程源碼解讀
這篇文章主要介紹了PowerJob的TransportServiceAware工作流程源碼解讀,有需要的朋友可以借鑒參考下,希望能夠有所幫助,祝大家多多進(jìn)步,早日升職加薪2024-01-01解析SpringBoot中@Autowire注解的實(shí)現(xiàn)原理
在開(kāi)發(fā)Java項(xiàng)目時(shí),依賴注入是一種常見(jiàn)的實(shí)現(xiàn)方式,SpringBoot框架通過(guò)@Autowired注解來(lái)實(shí)現(xiàn)依賴注入的功能,本文將介紹SpringBoot中 Autowired注解實(shí)現(xiàn)的原理2023-06-06Java調(diào)用wsdl接口的兩種方法(axis和wsimport)
本文主要介紹了Java調(diào)用wsdl接口的兩種方法(axis和wsimport),文中通過(guò)示例代碼介紹的非常詳細(xì),對(duì)大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(xué)習(xí)學(xué)習(xí)吧2023-03-03springboot使用war包部署到外部tomcat過(guò)程解析
這篇文章主要介紹了springboot使用war包部署到外部tomcat過(guò)程解析,文中通過(guò)示例代碼介紹的非常詳細(xì),對(duì)大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價(jià)值,需要的朋友可以參考下2020-01-01