Two tools for screen splitting in Linux Command Line Terminal
Here are two kinds of terminal screen splitting tools: screen and tmux
First, use screen to split the screen (only up and down, not left and right)
(1) install tools
Use sudo apt-get install screen to install screen tools in a ubuntu system
(2) use tools
1, enter the command screen to use the tool
2. Split up and down screens: ctrl + an and then press shift + s
3, switch the screen: ctrl + an and press the tab key
4, create a new terminal: ctrl + an and then press c
5, close a terminal: ctrl + an and then press x (or press exit directly to exit)
Second, use tmux to split the screen (either left or right, or up and down),
(1) install tools
Use sudo apt-get install tmux to install tmux tools in a ubuntu system
(2) use tools
1, enter the command tmux to use the tool
2. Split the screen up and down: press ctrl + b again.
3, split the screen left and right: ctrl + b and then press%
4. Switch the screen: ctrl + b and then press o
5, close a terminal: ctrl + b and press x
6. Switch between upper and lower split screen and 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 in 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 switched in the default panel layout. Just try it.
Q display panel number
Arrow keys move the cursor to select the corresponding panel
{displace the current panel forward
} displace the current panel backward
Alt+o rotates the panel of the current window counterclockwise
Ctrl+o rotates the panel of the current window clockwise
Summary
The above is the editor to introduce to you in the Linux command line terminal split screen of the two tools, I hope to help you, if you have any questions, please leave me a message, the editor will reply to you in time. Thank you very much for your support to the website!