导航菜单
首页 >  iftop  > How to use the command iftop (with examples)

How to use the command iftop (with examples)

Description:The iftop command is a network monitoring utility that displays bandwidth usage on a specific network interface by host. It provides real-time information about network traffic, including the amount of data sent and received by each host. With iftop, you can monitor network traffic on your system and identify which hosts are consuming the most bandwidth.

Use case 1: Show the bandwidth usage

Code:

sudo iftop

Motivation:By using the command sudo iftop, you can quickly observe and analyze the network traffic on your system. This information is useful for network administrators or individuals who want to monitor their network usage.

Explanation:The sudo iftop command without any additional arguments will display the bandwidth usage on the default network interface. It provides real-time information such as the source and destination hosts, their IP addresses, and the amount of data transferred between them.

Example output:

192.168.1.100:42000=> 104.17.428.50:44336.5KB 42.5KB 239.255.255.250:1900 0B 10.6KB 104.17.428.50:44336.5KB 42.5KB 104.17.428.50:44336.5KB 42.5KB 104.17.428.50:44336.5KB 42.5KB 104.17.428.50:44336.5KB 42.5KB

相关推荐: