本文共 2887 字,大约阅读时间需要 9 分钟。
为此我还做了一个gif动画:
alias scr='screen'
如果screen中的进程在消耗CPU,htop就会显示SCREEN进程占用CPU
[root@screen-4.5.0]$ cat ~/.screenrc
hardstatus onhardstatus alwayslastlinehardstatus string "%{.bW}%-w%{.rW}%n %t%{-}%+w %=%{..G} %H %{..Y} %m/%d %C%a "
$HOME/.screenrc如果不生效,可能需要给screen 加-a参数
用make install时,好像etc目录要手动复制??
root@screen-4.5.0$ make install./etc/mkinstalldirs /opt/screen-4.05/bin /opt/screen-4.05/share/screen/utf8encodingsmkdir /opt/screen-4.05mkdir /opt/screen-4.05/binmkdir /opt/screen-4.05/sharemkdir /opt/screen-4.05/share/screenmkdir /opt/screen-4.05/share/screen/utf8encodingscd doc ; make installdirsmake[1]: Entering directory `/root/tmp/screen-4.5.0/doc'./../etc/mkinstalldirs /opt/screen-4.05/share/man/man1 /opt/screen-4.05/share/infomkdir /opt/screen-4.05/share/manmkdir /opt/screen-4.05/share/man/man1mkdir /opt/screen-4.05/share/infomake[1]: Leaving directory `/root/tmp/screen-4.5.0/doc'if [ -f /opt/screen-4.05/bin/screen-4.5.0 ] && [ ! -f /opt/screen-4.05/bin/screen-4.5.0.old ]; \ then mv /opt/screen-4.05/bin/screen-4.5.0 /opt/screen-4.05/bin/screen-4.5.0.old; fi/usr/bin/install -c screen /opt/screen-4.05/bin/screen-4.5.0chown root /opt/screen-4.05/bin/screen-4.5.0 && chmod 4755 /opt/screen-4.05/bin/screen-4.5.0if [ -f /opt/screen-4.05/bin/screen ] && [ ! -f /opt/screen-4.05/bin/screen.old ]; then mv /opt/screen-4.05/bin/screen /opt/screen-4.05/bin/screen.old; firm -f /opt/screen-4.05/bin/screen(cd /opt/screen-4.05/bin && ln -f -s screen-4.5.0 screen)cp ./utf8encodings/?? /opt/screen-4.05/share/screen/utf8encodingscd doc ; make installmake[1]: Entering directory `/root/tmp/screen-4.5.0/doc'./../etc/mkinstalldirs /opt/screen-4.05/share/man/man1 /opt/screen-4.05/share/info/usr/bin/install -c -m 644 ./screen.1 /opt/screen-4.05/share/man/man1/screen.1make screen.infomake[2]: Entering directory `/root/tmp/screen-4.5.0/doc'makeinfo ./screen.texinfo -o screen.infomake[2]: Leaving directory `/root/tmp/screen-4.5.0/doc'if test -f screen.info; then d=.; else d=.; fi; \ if test -f $d/screen.info; then \ for f in $d/screen.info*; do /usr/bin/install -c -m 644 $f /opt/screen-4.05/share/info;done; \ if /bin/sh -c 'install-info --version' >/dev/null 2>&1; then \ install-info --info-dir=/opt/screen-4.05/share/info $d/screen.info; \ else true; fi; \ fimake[1]: Leaving directory `/root/tmp/screen-4.5.0/doc'if [ -d /usr/lib/terminfo ]; then \ PATH="$PATH:/usr/5bin" tic ./terminfo/screeninfo.src; \ chmod 644 /usr/lib/terminfo/s/screen*; \ fitermcap entry (./terminfo/screencap) should be installed manually.You may also want to install ./etc/etcscreenrc in /opt/screen-4.05/etc/screenrc
注意源码编译时,make install之后的提示,要求要手工将screencap,etcscreenrc复制到相关目录。碰到问题时,不要忽略这一点
从此妈妈再也不担心我突然断线工作丢失了……
转载地址:http://zokia.baihongyu.com/