Two methods of terminal split screen under linux (screen and tmux)

  • 2020-06-03 09:10:47
  • OfStack

This paper mainly introduces two kinds of terminal split screen tools: screen and tmux. They are Shared for your reference and study. Here are the details:

1. screen split screen (only up and down, not left and right)

(1) Installation tools

Used in ubuntu systems sudo apt-get install screen Install the screen tool

(2) Use of tools

1, enter the command screen The use of tools

2. Split screen up and down: ctrl + a and then shift + s

3. Switch the screen: ctrl + a and then press tab

4. Create a new terminal: ctrl + a and then press c

5. Close one terminal: ctrl + a and press x (or press exit to exit)

2. tmux split screen (left and right, up and down)

(1) Installation tools

Used in ubuntu system sudo apt-get install tmux Install the tmux tool

(2) Use of tools

1, enter the command tmux to use the tool

2, split screen: ctrl + b press"

3. Split screen: ctrl + b press % again

4. Switch the screen: ctrl + b and then press o

5. Close one terminal: ctrl + b and press x

6. Switch between the top and bottom split screen and the left and right split screen: ctrl + b and then press the space bar

Other:

! Place the current panel in a new window, that is, create a new window that contains only the current panel Ctrl+ arrow keys move edges by 1 cell to resize the current panel Alt+ arrow keys move edges in 5 cells to resize the current panel The space bar can be toggled in the default panel layout, just try it q displays panel number Arrow keys move cursor to select corresponding panel Replaces the current panel forward } Replaces the current panel backwards Alt+o Rotate the panel of the current window counterclockwise Ctrl+o rotate the panel of the current window clockwise

conclusion


Related articles: