iftop on Ubuntu
Introduction
iftop is free command-line system monitoring software that produces a frequently updated list of network connections.
By default the connections are ordered by bandwidth usage, and only the "top" bandwidth consumers are shown.
The iftop website gives the following description: "iftop does for network usage what top(1) does for CPU usage.
It listens to network traffic on a named interface and displays a table of current bandwidth usage by pairs of hosts.
Handy for answering the question"why is our ADSL link so slow?"".
Installation
apt install -y iftop
Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile * base: ftp.funet.fi * epel: mirror.cspacehostings.com * extras: ftp.funet.fi * updates: ftp.funet.fi Resolving Dependencies --> Running transaction check ---> Package iftop.x86_64 0:1.0-0.21.pre4.el7 will be installed --> Finished Dependency Resolution Dependencies Resolved ============================================================================================================================ Package Arch Version Repository Size ============================================================================================================================ Installing: iftop x86_64 1.0-0.21.pre4.el7 epel 53 k Transaction Summary ============================================================================================================================ Install 1 Package Total download size: 53 k Installed size: 94 k Downloading packages: iftop-1.0-0.21.pre4.el7.x86_64.rpm | 53 kB 00:00:00 Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : iftop-1.0-0.21.pre4.el7.x86_64 1/1 Verifying : iftop-1.0-0.21.pre4.el7.x86_64 1/1 Installed: iftop.x86_64 0:1.0-0.21.pre4.el7 Complete!
Example
iftop -i enp0s10
Article author: Andrei Olegovich