Linux下查看某个进程的网络带宽占用情况

说明:

1、可能查看某个进程的带宽占用需要明确知道PID、进程名字、发送速度、接收速度。

2、很遗憾,在Linux原生的软件中没有这样的一款,只能额外装,最符合以上的情况就只有nethogs。

3、nethogs可以指定网卡,但是不能指定PID,这就是一个缺陷。

使用:

sudo nethogs

安装:

#Ubuntu:
sudo apt-get install nethogs
#CentOS:
sudo yum install nethogs
原文地址:https://www.cnblogs.com/EasonJim/p/8099220.html