How to display network traffic in the terminal?

Here are some nice tools in the Ubuntu repositories for command line network traffic 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


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

sudo apt-get install iftop

Then run

sudo iftop

from any terminal!

Enjoy!


Someone should also have mentioned nethogs.

The thing that's different and maybe is cooler about this one is that it shows traffic per process, like the image shows

enter image description here

Take a look at the page

Tags:

Networking