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
slurm - has nice colored graphs
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
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
Take a look at the page