iftop Cheatsheet

Network IO.

Overview

iftop is the interactive bandwidth monitor that shows traffic per host pair in real time. Five primitive surfaces cover almost every bandwidth investigation: real-time bytes-per-pair, sortable view, port-level detail, BPF-style filters, and cumulative totals. Fluency on those five turns “the network is slow” into a specific flow within seconds.

The approach

Five commands and shortcuts carry most of the operational weight. Memorising them moves the team from staring at iftop’s default view to surgical traffic attribution.

Why this compounds

Each iftop session teaches the team a little more about how traffic actually moves through the network. Compounded across the year, bandwidth investigations finish in minutes and the team has a real mental model of east-west traffic.