How to Monitor All Network Traffic from a Specific Process in Linux ...
UseiftoptolocatetheTCPportonyourmachinethatisreceivingthemosttraffic.Thenusesudonetstat-tuptolocatetheprocessowningthatport.,Averysimpleapproachthenistoperiodicallylookin/proc//net/devandstoreitwithatimestamp.Hereyoucangettotalpackets/bytessentfr...。參考影片的文章的如下:

