Tumx与Screen分屏显示

 Screen分屏显示对Xshell并不友好,所以,直接卸载了:

[root@localhost src]# yum remove screen
Loaded plugins: fastestmirror, langpacks
Resolving Dependencies
--> Running transaction check
---> Package screen.x86_64 0:4.1.0-0.27.20120314git3c2946.el7_9 will be erased
--> Finished Dependency Resolution

Dependencies Resolved

=========================================
 Package                                                   Arch                                                      Version                                                                                Repository                                                   Size
=========================================
Removing:
 screen                                                    x86_64                                                    4.1.0-0.27.20120314git3c2946.el7_9                                                     @updates                                                    914 k

Transaction Summary
=========================================
Remove  1 Package

Installed size: 914 k
Is this ok [y/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Erasing    : screen-4.1.0-0.27.20120314git3c2946.el7_9.x86_64                                                                                                                                                                                                           1/1 
  Verifying  : screen-4.1.0-0.27.20120314git3c2946.el7_9.x86_64                                                                                                                                                                                                           1/1 

Removed:
  screen.x86_64 0:4.1.0-0.27.20120314git3c2946.el7_9                                                                                                                                                                                                                          

Complete!

主要原因在于左右分屏不能实现,后面的参考链接说:左右分屏在 centos 下好像不可以,据说要 ubuntu、debian(Ctrl+a |)。所以,重新安装了tumx:

# yum install tmux
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * epel: mirrors.tuna.tsinghua.edu.cn
Resolving Dependencies
--> Running transaction check
---> Package tmux.x86_64 0:1.8-4.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=========================================
 Package                                                         Arch                                                              Version                                                              Repository                                                       Size
=========================================
Installing:
 tmux                                                            x86_64                                                            1.8-4.el7                                                            base                                                            243 k

Transaction Summary
=========================================
Install  1 Package

Total download size: 243 k
Installed size: 558 k
Is this ok [y/d/N]: y
Downloading packages:
tmux-1.8-4.el7.x86_64.rpm                                                                                                                                                                                                                              | 243 kB  00:00:01     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : tmux-1.8-4.el7.x86_64                                                                                                                                                                                                                                      1/1 
  Verifying  : tmux-1.8-4.el7.x86_64                                                                                                                                                                                                                                      1/1 

Installed:
  tmux.x86_64 0:1.8-4.el7                                                                                                                                                                                                                                                     

Complete!

安装完tumx之后,首先要键入tumx,然后在每次想要做的事情之前,先按上ctrl+b就可以了,例如:

" 上下分屏 (用到shift)
% 左右分屏 (用到shift)
x 关闭当前分屏
! 将当前面板置于新窗口,即新建一个窗口,其中仅包含当前面板
ctrl+方向键 以1个单元格为单位移动边缘以调整当前面板大小
alt+方向键 以5个单元格为单位移动边缘以调整当前面板大小
q 显示面板编号
o 选择当前窗口中下一个面板
方向键 移动光标选择对应面板
{ 向前置换当前面板
} 向后置换当前面板
alt+o 逆时针旋转当前窗口的面板
ctrl+o 顺时针旋转当前窗口的面板
z 最大化当前所在面板
page up 向上滚动屏幕,q 退出
page down 向下滚动屏幕,q 退出

  

参考链接:

[1] linux终端分屏-screen-chape的个人空间-OSCHINA-中文开源技术交流社区

[2] xshell关闭终端后-程序仍然能够运行(tmux-screen-nohup;ABAQUS Analysis User's Manual(v6.6)

[3] 中国本土纳米杂志nano research 和 nanoscale 2011年影响因子走势及其投稿建议

 

posted on 2023-08-20 10:52  Paulcnblogs  阅读(49)  评论(0编辑  收藏  举报

导航