Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm looking for a simple tool on Ubtunu that can report average network throughput/load. Something very simple: something like "uptime" - just to tell me number bytes/MB read in last 5mins, 10mins, and one hour.

share|improve this question
There's a nice tool called "nload" that I use on NetBSD. You'll probably have to install it as I suspect it's not included with most (if not all) flavours of Unix and distributions of Linux. – Randolf Richardson Aug 8 '11 at 8:07

For instant network statistics you can use ifstat. In this example I am monitoring the wlan0 interface every second. The -S flag keeps the updates on the same line:

$ ifstat -S -i wlan0 1
 KB/s in  KB/s out
   19.34      3.98

To install just type sudo apt-get install ifstat

share|improve this answer
Exactly. The OP is looking for a rate, that is a count over some time interval. The uptime is an absolute time. These are different things. The kernel doesn't keep track of rates, so you need an external program to do it, such as ifstat. tcpstat, or others. – Keith Jul 31 '11 at 2:30

1.) Not exactly what you're looking for, is ifconfig:

ifconfig ppp0

ppp0      Link encap:...
          RX bytes:73844122 (73.8 MB)  TX bytes:20949231 (20.9 MB)

This is what went over that connection since up.

2.:) Xubuntu has a Network-Monitor for the panel. There you can specify a time interval, but not retrospectiv - first you have to set it up, and then you can watch it live. Either it is available for Ubuntu as well, or a similar thing.

share|improve this answer

I always use NTM to monitor inbound and outbound network traffic on Ubuntu, you can find here a tutorial explaining how to install it on Ubuntu.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .