-1

Possible Duplicate:
Is there a linux terminal command that lets you see the amount of data coming in to your tcp connections in real time?

I want to able to display realtime (or near realtime) network utilization without third part tools in Linux, e.g.

102KB on interface eth0

is it possible?

Ryan
  • 5,341
  • 21
  • 71
  • 87

4 Answers4

0

There's iftop and iptraf to name but two.

"iftop does for network usage what top(1) does for CPU usage" -- http://www.ex-parrot.com/~pdw/iftop/

Tom O'Connor
  • 27,440
  • 10
  • 72
  • 148
0

According to your Description, you want vnstat.

Question has also been answered here

mojo
  • 229
  • 1
  • 2
  • 11
0

There is also ifstat if all you want is total throughput.

James Park-Watt
  • 358
  • 1
  • 8
0

On Ubuntu it is shown in ifconfig, where RX: Received, TX: Transmitted

ifconfig eth0

eth0  Link encap:Ethernet  HWaddr 00:21:23:e3:50:0c  
      inet addr:192.168.2.14  Bcast:192.168.2.255  Mask:255.255.255.0
      UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
      RX packets:4074454586 errors:0 dropped:0 overruns:0 frame:1
      TX packets:2709815673 errors:0 dropped:0 overruns:0 carrier:0
      collisions:0 txqueuelen:1000 
      RX bytes:2484134569 (2.4 GB)  TX bytes:978423284 (978.4 MB)
      Interrupt:41 Base address:0x7c00

To get just the usage, use grep:

ifconfig eth0 | grep 'RX bytes'

RX bytes:2484134569 (2.4 GB)  TX bytes:978423284 (978.4 MB)

To continuously monitor, use watch:

watch "ifconfig eth0 | grep 'RX bytes'"