centos查看实时网络带宽占用情况方法

原文地址:https://www.cnblogs.com/agang-php/p/6210900.html

Linux中查看网卡流量工具有iptraf、iftop以及nethogs等,iftop可以用来监控网卡的实时流量(可以指定网段)、反向解析IP、显示端口信息等。

yum install iftop -y

iftop -i eth1

网卡流量:
yum install -y nethogs
nethogs eth0

界面说明:
"<="与"=>",表示的是流量的方向

"TX":从网卡发出的流量
"RX":网卡接收流量
"TOTAL":网卡发送接收总流量
"cum":iftop开始运行到当前时间点的总流量
"peak":网卡流量峰值
"rates":分别表示最近2s、10s、40s 的平均流量

原文地址:https://www.cnblogs.com/braless/p/14361592.html