Summary of Tmux and tcpdump in Linux
0. Preface
This blog is only used to record a small tool used by an individual at work. It will be used later.
1. Tmux
Multiplexer allows you to create multiple terminals on one screen. This tool can also be used for Pair programming.
Personal purpose: 1. enable multiple terminals on one screen (because the individual uses a 24-inch screen)
2. save the work environment, dettach when not in use, switch to the corresponding environment, usually three sessions are created, one is used to open the program, and the other is used to work the environment, the third is the study environment.
Common commands:
Tmux creates a session by default. The session name starts from 0.
Tmux new-s SESSION_NAME creates a new session
Tmux attach-t SESSION_NAME connects to a created session.
Tmux ls view Sessions of the current tmux
In a session, the command uses ctl + B as the prefix
Ctl + B + d. Disconnecting the current session d Indicates dettach
Ctl + B + %, Vertical Split to create a pane (pane)
Ctl + B + ", created in horizontal segmentation
Ctl + B + direction key, switch pane
Ctl + B Press + direction key to adjust the size of the pane
Ctl + B + [, view or copy the previously output content (Note: tmux does not have a scroll bar, so this function is important to view the content that exceeds one screen)
Tmux list-panes view the current session pane
Tmux kill-pane-t PANE_NAME close a pane, where PANE_NAME is the name of the pane. If it is created by default, it starts from 0.
2. tcpdump
This command is used to listen to the data sent and received by network transmission. Generally, administrator permissions are required for this command.
Personal purpose: Listen to the server port during the test, observe the data sending and receiving, and establish the connection.
Common parameters:
-I: network interface of the listener
Filter parameters:
Port NUMBER indicates the port specified by the listener.
The ip address specified by the IP address listener
For example, listening for 172.16.17.229: 8080: "ip 172.16.17.229 and port 8080"
You may also like the following articles about Tmux:
Tmux: terminal multiplexing
Simple tmux tutorial
Tmux getting started
Build IDE with Tmux and Vim
Install and use Tmux in CentOS
Build IDE with Tmux and Vim
Tmux details: click here
Tmux: click here
This article permanently updates the link address: