iftop
displays real-time bandwidth usage on a network interface. It shows active IP connections, inbound/outbound traffic rates, and totals, making it ideal for analyzing live network loads and pinpointing high-traffic sources.
Install via your package manager:
sudo apt install iftop # Debian / Ubuntu
sudo yum install iftop # CentOS / RHEL
sudo pacman -S iftop # Arch Linux
Basic usage on interface eth0
:
sudo iftop -i eth0
If omitted, iftop
may select a default interface or return an error.
Key | Function |
---|---|
h | Show help |
t | Toggle traffic display modes |
s / S | Sort by send or receive |
p | Show port numbers |
n / N | Toggle DNS name resolution |
q | Quit |
sudo iftop -i ens33
sudo iftop -n
sudo iftop -P
sudo iftop -f "port 80"
sudo
to access network interfaces-i
to target the correct interface on multi-NIC systemsFeature | iftop | nload | iptraf |
---|---|---|---|
Live bandwidth monitoring | ✅ | ✅ | ✅ |
IP-level detail | ✅ | ❌ | ✅ |
Interactive terminal view | ✅ | ✅ | ✅ |
BPF filtering | ✅ | ❌ | ✅ |
iftop
is a concise and practical network monitoring tool for Linux. It helps administrators analyze traffic volume, detect unusual activity, and manage network performance—all in real time. Its filtering, sorting, and live metrics make it ideal for server diagnostics and daily usage.