Use iftop to monitor network traffic and iftop to monitor network traffic
Iftop is a useful tool. The following command monitors the wireless network card of my notebook
iftop -i wlan0
For example, if I play a video of letv, The iftop displays the following information:
Basic description:
1. the main part of the screen is the data transfer between two machines, with an arrow indicating the direction. The three values on the right are the average traffic of the past 2 seconds, 10 seconds, and 40 seconds, respectively.
2. TX in the lower-left corner indicates the sent data, and RX indicates the received data,
Cum indicates the Total traffic, and peak indicates the corresponding peak value, so you do not need to explain Total.
How can I write the iftop content of the Linux traffic monitoring tool to logs?
Nohup iftop>/tmp/iftop. log & # append to a log file. Then it is thrown to the background, and the monitoring effect is not good.
In linux, how does one view the network speed occupied by the current process?
Real-time iftop display of Bandwidth
Install: yum install iftop
Common parameters:
-I: sets the monitored Nic, for example: # iftop-I eth1
-B displays traffic in bytes (bits by default), for example: # iftop-B
-N: the host information is directly displayed by default, for example: # iftop-n
-N indicates that port information is directly displayed by default, for example: # iftop-N
-F displays inbound and outbound traffic for a specific network segment, for example, # iftop-F 10.10.1.0/24 or # iftop-F 10.10.1.0/255.255.255.0
-H (display this message), help, display parameter information
-P: When this parameter is used, the local host information is displayed in the intermediate list, and IP information other than the local host is displayed;
-B: The traffic graph bar is displayed by default;
-F this is not very useful for the moment. It is used to filter the computing package;
-P: the host information and port information are displayed by default;
-M: set the maximum value of the scale at the top of the page. The scale is displayed in five segments. For example: # iftop-m 100 M
Reference URL: blog.licess.org/iftop/