sudo nethogs
NetHogs version 0.8.1
PID USER PROGRAM DEV SENT RECEIVED
25685 root /usr/local/java/jdk/jre/bin/java eth0 3.969 3.230 KB/sec
28775 root ./redis-server 0.0.0.0:6379 eth0 0.950 1.104 KB/sec
10881 mysql /usr/sbin/mysqld eth0 1.511 0.714 KB/sec
? root 172.17.102.42:8081-111.175.51.91:38779 0.148 0.202 KB/sec
21060 mosquittomosquitto eth0 0.039 0.058 KB/sec
17598 root sshd: root@pts/0 eth0 0.414 0.032 KB/sec
31978 root sudo eth0 0.016 0.013 KB/sec
? root unknown TCP 0.000 0.000 KB/sec
TOTAL 7.046 5.354 KB/sec
root@iZ2zej5ize8ferkwhhwsc9Z:~# sudo nethogs