Search code examples
linuxnetwork-programmingbandwidth

How can I get the current network interface throughput statistics on Linux/UNIX?


Tools such as MRTG provide network throughput / bandwidth graphs for the current network utilisation on specific interfaces, such as eth0. How can I return that information at the command line on Linux/UNIX?

Preferably this would be without installing anything other than what is available on the system as standard.


Solution

  • You can parse the output of ifconfig