0. Preface
This blog is only used to record a small tool used by the individual in the work, followed by other supplements.
1. Tmux
Terminal Splitter (multiplexer), you can create multiple terminals on one screen, and this tool can also be used for pairing programming.
Personal use: 1. Open multiple terminals in one screen (because the individual is using a 24-inch screen)
2. Save the working environment, Dettach when not in use, switch to the corresponding environment, the general person will create three sessions, one for the opening program, the second for the work environment, and the third for the study environment.
Common commands:
Tmux creates a session by default and the session name is named starting at 0
Tmux new-s Session_name Create a new session
Tmux attach-t Session_name connected to a session that was created.
Tmux LS View the sessions that are currently owned by Tmux
In the session, the command is prefixed with CTL + b prefix
CTL + B + D, disconnect the current session D represents Dettach
CTL + B +%, create a pane (pane) in Vertical split
CTL + B + ", created in horizontal split
CTL + B + arrow keys, Toggle Pane
CTL + B Press and hold the + arrow key to resize the pane
CTL + B + [, view or copy the contents of the previous output (note: Tmux does not have scroll bars, so this feature is more important for viewing the content of the output than one screen)
Tmux List-panes View the current session pane
Tmux kill-pane-t Pane_name closes a pane, where Pane_name is the name of the pane, and if created by default, labels starting from 0
2. tcpdump
Used to listen for data sent and received by the network, This command generally need to use the administrator's permissions.
Personal use: Monitor the port of the server when testing, observe the data sending and receiving, connection establishment situation.
Common parameters:
-I specifies the Listening network interface
Filter Parameters:
Port number listens on the specified ports
IP IP listens for specified IP
Example: monitoring 172.16.17.229:8080: "IP 172.16.17.229 and port 8080"
Summary of gadget usage under Linux