Forrest logo
back to the iftop tool

iftop:tldr:6dbdb

iftop: Show the bandwidth usage of a given interface.
$ sudo iftop -i ${interface}
try on your machine

The command "sudo iftop -i ${interface}" is used to launch the iftop tool with superuser privileges (via sudo) to monitor network traffic on a specific network interface.

Here's a breakdown of the command:

  • "sudo": It is a command that allows a user to run programs with the security privileges of another user, typically the superuser (root).
  • "iftop": It is a tool used to display an interactive display of network traffic on a given network interface.
  • "-i ${interface}": This is an argument passed to the iftop command that specifies the network interface to monitor. The ${interface} is a placeholder that should be replaced with the actual name of the network interface you want to monitor (e.g., eth0, wlan0, etc.).

In summary, this command with proper replacement of ${interface} will run the iftop tool with root privileges, providing an interactive view of network traffic on the specified network interface.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the iftop tool