Install iftop on Raspberry Pi

Install iftop on Raspberry Pi

The iftop is a command line tool that allows to monitor network bandwidth. This tool listens to the network traffic on specific interface and displays bandwidth usage in the table.

This tutorial explains how to install iftop on Raspberry Pi.

Use SSH to connect to Raspberry Pi. Update the package lists and install iftop with the following commands:

sudo apt update
sudo apt install -y iftop

Run iftop command without any arguments to view network bandwidth usage on default interface:

sudo iftop

To get a list of all available network interfaces, run the following command:

ip addr show

Use -i option to specify the network interface that you want to monitor:

sudo iftop -i wlan0
Network Bandwidth Usage Monitoring Using iftop

To quit iftop, type CTRL+C.

If you decided to completely remove iftop and related dependencies that are not used by any other packages, simply execute the command:

sudo apt purge --autoremove -y iftop

Leave a Comment

Cancel reply

Your email address will not be published.