I am using Ubuntu 14.04. My internet connection is pretty slow (512 kbps). Sometimes I see that I have no software running which should download anything from the internet, but the system monitor still shows that some download is going on. So I think some hidden software are causing this. Is there a way I can monitor every software that is using internet?
You can use nethogs tool to monitor all your traffic on an interface.
Install it using
Now run it using
For example
For more detail type
man nethogs
after installing.I prefer
sudo netstat -tunap
shows even system proses that is using the network and the name of them.
but not really a monitor as you half to keep running it to see changing output.
Just a bit more comfort with netstat
sudo watch -n1 netstat -tunap
It will refresh the data each 1s
The
iptraf
utility is another way to monitor the traffic, provided by the iptraf package.sudo apt-get install iptraf
installs it.iptraf
is available in Red Hat Linux also; runyum install iptraf
as root to install it.Terminal tool:
netstat -tnp
. -n option is to show numerical address (ip) to which connection is established, -p is program which has established that connection, and -t lists all tcplimits to tcp connections. Alternativelly, you could usenetstat -a > networkscan.txt
to output everything into a txt fileSocket Statistics,
ss
ss
is the modern alternative tonetstat
.Usage example:
There is a more modern alternative to ss by now :)
ss2(pyroute)