Forrest logo
back to the iftop tool

iftop:tldr:1959d

iftop: Show the bandwidth usage.
$ sudo iftop
try on your machine

The command "sudo iftop" is used to run the iftop program with administrative privileges.

iftop is a command-line tool that displays network traffic in real-time. It provides a visual representation of the network usage and shows the current network connections, their source and destination IP addresses, as well as the amount of data transferred.

By running the command with "sudo" (superuser do), you are granting elevated permissions to iftop, allowing it to have access to all network interfaces and capture and display all network traffic. This is necessary because monitoring network traffic requires privileged access to certain system resources.

In summary, "sudo iftop" runs the iftop program with superuser privileges to monitor and display real-time network traffic.

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