I bring you this excellent tip that I found in the Un Brutus with Debian blog, where it shows us how to know which application on our computer is consuming more bandwidth.
To achieve this we have to install an application called nethogs:
$ sudo pacman -S nethogs
or in Debian:
$ sudo aptitude install nethogs
And so on according to the distribution we are using. Now how do we use it?
Use of Nethogs
Basically what we have to do is run the command:
$ sudo nethogs [interface]
In Debian and derivatives it would normally be:
$ sudo nethogs eth0
But in Arch Linux we know that this changed, so we have to first know the name of our interface with the command:
$ ip link 1: lo: mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT link / loopback 00: 00: 00: 00: 00: 00 brd 00: 00: 00: 00: 00: 00 2: enp5s0: mtu 1500 qdisc pfifo_fast state UP mode DEFAULT qlen 1000 link / ether 18: 03: 73: a3: f3: e1 brd ff: ff: ff: ff: ff: ff 3: wlp9s0: mtu 1500 qdisc noop state DOWN mode DEFAULT qlen 1000 link / ether 4c: 80: 93: 19: da: 02 brd ff: ff: ff: ff: ff: ff 4: virbr0: mtu 1500 qdisc noqueue state UP mode DEFAULT link / ether fe: 54: 00: 00: d8: 4f brd ff: ff: ff: ff: ff: ff 5: vnet0: mtu 1500 qdisc pfifo_fast master virbr0 state UNKNOWN mode DEFAULT qlen 500 link / ether fe: 54: 00: 00: d8: 4f brd ff: ff: ff: ff: ff: ff
In my case it would be:
$ sudo nethogs enp5s0
Which returns us something like this:
And that's it, Firefox to the bonfire !! 🙂
And is it not normal for a browser to consume more bandwidth? xD
Hahaha, of course it is, I was just kidding ..
Ah .. clear sarcasm. Sometimes it is difficult to understand on the Internet, ok, excuse me! xD
Sheldon detected! 😛
Very good !, interesting application, but there is one thing that is not seen in the image and that if it appears to me when I run the application, that thing is that it shows me the IPs + port with which the application communicates when it sends / receives. In my case, I must say that the application that occupies the most bandwidth is normally aria2, aria2 to the stake! XD!
I had a lot that I was looking for !!, I have a very reduced bandwidth: Yes, when I used ubuntu one day they did not open the pages, I restarted and everything was normal but then again and I started to see what happened with the system monitor and it turned out that I was uploading a file but it was neither from ubuntu one nor dropbox and due to my bandwidth it affected me, I found that it was the bug report or the information that is sent to canonical about ubuntu so I deactivated it but, it would have been easier to detect that it ate my bandwidth with this application xD
What version or application do you have for the elav terminal? or is it just a theme? because it does not seem to me that it is the normal konsole
If I'm not mistaken, it's yakuake with a different skin than the one that comes by default.
Hehehehe .. It's Yakuake, with one of the themes that it brings by default, but I put a background color that is integrated into the color of the panel .. What's cool? 😛
Yes, and it is much cooler than my gnome-terminal.
In GTK you can use Guake, it's the same:
# apt-get install guake
Good. I will try it.
It is obvious that our beloved browser is the one that uses the most bandwidth than the rest.
[YaoMing] Iceweasel, to the stake! >> http://i.imgur.com/Qsv6BNG.png%5B/YaoMing%5D
Very good application, now I will be able to easily identify that it takes away bandwidth from downloads.
Regards!
Very good application and super useful when you have hundreds of programs that use the internet constantly. Needless to say, the information is appreciated.
# Cheers
My interface is no longer eth0 but is called wlp4s0. Does anyone know what the change is due to? I thought it would be a new standard but I see that in the explanation using Arch the interface is enp5s0.
Doubts, doubts mine ...
What distribution are you using? Because in your case it seems that you already use Systemd and the interface you mention is that of the WiFi.