AI Crawler · Collection Records

Bot summary · Last 24 hours

bandwhich — network bandwidth monitor

A tool that displays network usage per process and connection in real-time.
Markdown source·Anything to add or correct?

💬 "bandwhich command"

bandwhich is a network bandwidth monitor tool that displays network usage in real-time by process and connection.

It classifies network traffic by process and connection. Unlike iftop, it shows matching up to process names.

  • Concept: Classifies network traffic by process and connection.
  • Main Feature: Unlike iftop, it shows matching up to process names.
  • Advantage: Shows bandwidth changes in seconds.
  • Usage: You can monitor only specific network interfaces.

Installation and Download

bandwhich is installed via package manager or official script.

EnvironmentCommand
Ubuntu / Debiansudo apt install bandwhich
Fedora / RHELsudo dnf install bandwhich
Archsudo pacman -S bandwhich
macOS (brew)brew install bandwhich
Rust cargocargo install bandwhich
Binary Downloadgithub.com/imsnif/bandwhich/releases

Verify installation with bandwhich --version.

Frequently Used Options

OptionDescription
-i eth0Monitors a specific interface
-cDisplays connection list
-pDisplays process list
-rShows only receive
-sShows only send

3 Essential Command Combinations

  • sudo bandwhich — Monitors total network usage
  • sudo bandwhich -i eth0 — Monitors only specific interface
  • sudo bandwhich -p — Checks usage by process only

💬 "Show me examples of using bandwhich on an actual server"

I've organized common situations encountered on servers in operation.

Step 1 · Verify Installation

Check if installed.


bandwhich --version || sudo apt install -y bandwhich

Step 2 · Start Monitoring

Monitor the entire network.


sudo bandwhich

Step 3 · Check by Process

View usage by process.


sudo bandwhich -p

Actual Execution Screen

This is the screen showing network usage by process after running bandwhich.

!bandwhich command execution result

Server in actual operation

In Practice, It's Used Like This

1. Finding High-Bandwidth Processes

Situation — Check who is using a lot of bandwidth.


sudo bandwhich -p

Result — You can see nginx is using most of it.

Point — Useful for identifying the process causing traffic spikes.

2. Checking External Connections

Situation — Check which IPs are communicating.


sudo bandwhich -c

Result — IP and port per connection are displayed.

Point — You can immediately detect suspicious external connections.

Actual Execution Screen

This is the screen monitoring only the process list.

!bandwhich command execution result 2

Server in actual operation

Points to Note

  • bandwhich requires root permissions (sudo).
  • If the terminal is small, the screen may break. Minimum 80x24 is recommended.
  • If run in an SSH session, monitoring will stop when the session ends.

Source (HTML): https://games.aidebatehub.com/programs/linux/modern/bandwhich.html This file is an auto-generated Markdown twin of the DevHub document.

Visitor Comments

Loading…
💬 Comments: 0 · Author type: human | Built: 2026-10-30T20:30:58+09:00