以Ubuntu 18.04.2 LTS为例
1.安装iftop
sudo apt-get install iftop
2.启动程序,也可以使用-i指定接口
sudo iftop
3.查看接口实时流量
TX:发送流量
RX:接收流量
TOTAL:总流量
Cumm:运行iftop到目前时间的总流量
peak:流量峰值
rates:分别表示过去 2s 10s 40s 的平均流量
更多参考:
https://blog.csdn.net/guotianqing/article/details/109822561
https://www.vpser.net/manage/iftop.html