Two tools for splitting the screen in the Linux command line terminal

Two tools for splitting the screen in the Linux command line terminal

Here are two terminal split screen tools: screen and tmux

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

(1) Installation tools

Install the screen tool in Ubuntu using sudo apt-get install screen

(2) Use tools

1. Enter the command screen to use the tool

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

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

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

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

2. Use tmux to split the screen (either left and right, or top and bottom).

(1) Installation tools

Install the tmux tool in the Ubuntu system using sudo apt-get install tmux

(2) Use tools

1. Enter the command tmux to use the tool

2. Split the screen up and down: ctrl + b and then press "

3. Split the screen left and right: ctrl + b and then press %

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

5. Close a terminal: ctrl + b and then press x

6. Switch between top-bottom split screen and left-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 the edge in units of 1 cell to adjust the current panel size
Alt+arrow keys move the edge in units of 5 cells to resize the current panel
The space bar can switch between the default panel layouts. Try it and you will know.
q Display panel number
Use the arrow keys to move the cursor to select the corresponding panel
{ Replace the current panel forward
} Replace the current panel backwards
Alt+o Rotate the current window's panels counterclockwise
Ctrl+o rotates the panel of the current window clockwise

Summarize

The above are two tool solutions for splitting the screen in the Linux command line terminal introduced by the editor. I hope it will be helpful to everyone. If you have any questions, please leave me a message and the editor will reply to you in time. I would also like to thank everyone for their support of the 123WORDPRESS.COM website!

You may also be interested in:
  • Connect to Linux command line code example via Python
  • 5 Ways to Send Emails in Linux Command Line (Recommended)
  • Linux command line quick tips: How to locate a file
  • Some functions of using tcpdump to capture packets in the Linux command line
  • How to package Android applications through the command line in Linux
  • How to modify IP, DNS and routing command line configuration in Linux
  • How to Communicate with Other Users on the Linux Command Line

<<:  Steps for encapsulating element-ui pop-up components

>>:  After installing MySQL, the root account prompt appears when logging in. mysql ERROR 1045 (28000): Access denied for use solution

Recommend

Detailed explanation of gcc command usage under Linux system

Table of contents 1. Preprocessing 2. Compilation...

MySQL 5.7.20 zip installation tutorial

MySQL 5.7.20 zip installation, the specific conte...

How to use DPlayer.js video playback plug-in

DPlayer.js video player plug-in is easy to use Ma...

Docker Compose installation and usage steps

Table of contents 1. What is Docker Compose? 2. D...

Use Python to connect to MySQL database using the pymysql module

Install pymysql pip install pymysql 2|0Using pymy...

How to implement Docker to dynamically pass parameters to Springboot projects

background Recently, some friends who are new to ...

WeChat applet implementation anchor positioning function example

Preface In the development of small programs, we ...

How to insert weather forecast into your website

We hope to insert the weather forecast into the w...

Explanation of the problem that JavaScript strict mode does not support octal

Regarding the issue that JavaScript strict mode d...

How to enable slow query log in MySQL

1.1 Introduction By enabling the slow query log, ...

Problems and experiences encountered in web development

<br />The following are the problems I encou...

CSS Reset style reset implementation example

Introduction: All browsers come with default styl...

How to build sonarqube using docker

Table of contents 1. Install Docker 2. Install so...