Ubuntu14.04中使用screen

来源:互联网 发布:小白菜软件 编辑:程序博客网 时间:2024/06/01 09:29

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 sizeCtrl+a F        # 同上

6、复制粘贴[5]

    可以将一个分区的内容复制到另外一个分区。

    先

Ctrl+a

    然后

Ctrl+[ # 进入复制模式,使用空格来定位复制的起点和终点 Ctrl+] # 粘贴

参考资料

[1]screen_百度百科

[2]linux中强大的screen命令

[3]linux 技巧:使用 screen 管理你的远程会话

[4]linux下screen命令的使用

[5]linux screen 命令详解

[6]linux终端分屏——screen