1

Short question: In Ubuntu, how can I find out how much network data each process has used at a certain time interval (e.g., last hour, last day, ...)?

Long question: I am connecting my Ubuntu machine to the internet using a mobile data plan. After several hours of connection, the data usage is more than 2 GB, which is a bit more than expected. So I would like to find out where does the data go. Searching on the internet, I found several tools, for example, nethogs. But nethogs only tells me the instantaneous bandwidth each process is using, which I do not care. Is there a tool that tells me how much network data each process has used at a certain time interval (e.g., last hour, last day, ...)?

Any tool that only shows the instantaneous bandwidth usage does not help. The data-eating process may be active for only a short time period that I do not know, so it is hard to tell which moment to monitor.

Any tool that only shows the total data usage of the machine or an interface (e.g., eth0, wwan0, ...) does not help. I already have that information from the data package provider.

Thank you for any comments.

7
0

.....That would be nethogs

nethogs running with its default parameters will lead you to the conclusion that it is inadequate.

If you read the man pages, there are flags you can add that will give you your exact desired results (according to your statements).

sudo nethogs -v 3

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.