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'"