1、安装
sudo apt-get install screen
2、创建终端分屏[6]
先执行:
screen
然后:
Ctrl+a S # Split the current region horizontally into two new ones.
Ctrl+a | # Split the current region vertically into two new ones.
Ctrl+a c # Create a new window with a shell and switch to that window.
3、取消终端分屏[6]
Ctrl+a X # Kill the current region.
Ctrl+a :remove # 同上
exit # 同上
Ctrl+a k # Destroy current window.
4、分屏之间切换[6]
Ctrl+a tab # Switch the input focus to the next region.
5、分区大小调整
Ctrl+a :resize # 调整分区大小,输入这个命令后,跟着输入宽度的行数。
Ctrl+a :fit # fit screen size to new terminal size
Ctrl+a F # 同上
6、复制粘贴[5]
可以将一个分区的内容复制到另外一个分区。
先
Ctrl+a
然后
Ctrl+[ # 进入复制模式,使用空格来定位复制的起点和终点
Ctrl+] # 粘贴
参考资料
[1]screen_百度百科