Tell me more ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

how to display the actual network traffic (wireless) in a terminal?

Additionally: Is it possible to add this info to the chart of top?

share|improve this question

6 Answers

up vote 7 down vote accepted

Some other nice tools in the Ubuntu repositories for command line bandwidth monitoring:

bmon - shows multiple interfaces at once

enter image description here

slurm - has nice colored graphs

enter image description here

tcptrack - A favorite. Tells how much bandwidth is being used and also what protocol (service/port) and destination the transmission is taking place to. Very helpful when you want to know exactly what is using up your bandwidth

enter image description here

share|improve this answer

Install ’vnstat’ it can show traffic for an interface. You can install some plotting packages to get some nice graphs.

share|improve this answer

Also you could use iftop utility

share|improve this answer

It's quite easy! install "iftop" with:

    sudo apt-get install iftop

Then run

    sudo iftop

from any terminal!

Enjoy!

share|improve this answer
tcpdump -i eth0 

That will give you a streaming information of all the data flowing from that interface (your ethernet card). Similar to wireshark.

Use ifconfig to see a list of your machines interfaces.

share|improve this answer

I think ifconfig [interface] will do that. Like:

gevorg@gevorg-TravelMate-3260:~$ ifconfig wlan0
wlan0     Link encap:Ethernet  HWaddr 00:18:de:89:52:71  
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

gevorg@gevorg-TravelMate-3260:~$ ifconfig eth0
eth0      Link encap:Ethernet  HWaddr 00:16:36:bf:92:e3  
          inet addr:192.168.10.100  Bcast:192.168.10.255  Mask:255.255.255.0
          inet6 addr: fe80::216:36ff:febf:92e3/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:342765 errors:0 dropped:0 overruns:0 frame:0
          TX packets:306183 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:373934806 (373.9 MB)  TX bytes:39111569 (39.1 MB)
          Interrupt:16 

It shows RX bytes:73934806 (373.9 MB) and TX bytes:39111569 (39.1 MB).

share|improve this answer
but this is only the over-all statistic for this session. I would see if the connection is active or not. – IndexOutOfBoundsException Feb 17 at 10:38
1  
netstat -t -u -c ? – geoh Feb 17 at 10:41

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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