![](https://grocery-picture.oss-cn-shanghai.aliyuncs.com/blog/20200404/vnStat_comp-862x584.jpg?x-oss-process=style/W1280)
介绍Linux查看带宽网卡流量的工具:iftop
iftop的功能:
- 实时流量
- 反向解析IP
- 显示端口信息
安装iftop
yum install iftop -y
相关参数介绍
![](https://grocery-picture.oss-cn-shanghai.aliyuncs.com/blog/20200404/20200405111146.png?x-oss-process=style/W1280)
标识说明
- “<=”/"=>":流量的方向
- “TX”:网卡发出的流量(出方向)
- “RX”:网卡接收的流量(入方向)
- “TOTAL”:网卡总流量(出和入方向总和)
- “cum”:iftop运行到当前时间的总流量
- “peak”:网卡的流量峰值
- “rates”:分别表示2s,10s,40s的平均流量
效果截图省略