Two tools at the Linux command line terminal split screen
- 2020-11-30 08:45:12
- OfStack
Here are two terminal split screen tools: screen and tmux
1. screen split screen (only up and down, not left and right)
(1) Installation tools
Install the screen tool on the ubuntu system using sudo ES12en-ES13en install screen
(2) Use of tools
1, enter the command screen to use the tool
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 then press x (or press exit to exit)
2. tmux split screen (left and right split screen, or up and down split screen);
(1) Installation tools
Install the tmux tool on the ubuntu system using sudo ES53en-ES54en install tmux
(2) Use of tools
1, enter the command tmux to use the tool
2, split screen up and down: 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 upper and lower split screens and the left and right split screens: 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 the 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