Terminal tool that shows current network bandwidth use by process, connection and remote host
open sourceMITfree
bandwhich is a terminal utility that shows which processes, connections and remote IPs or hostnames are using your network right now. It sniffs a network interface, records IP packet sizes and matches them to processes through /proc on Linux, lsof on macOS or the Windows API, resolving remote addresses to hostnames in the background. You can pick the interface, show only the processes, connections or addresses table, show cumulative totals, choose units, see DNS queries, or print machine-friendly raw output. It's a Rust binary for Linux, macOS, Windows and (best effort) Android, and on Linux needs capabilities set with setcap or root. The project is in passive maintenance: critical issues are fixed, but no new features are planned.
Problems it solves
- find which process is using my network bandwidth
- see bandwidth per connection in the terminal
- a nethogs alternative that works on macOS and Windows
- see which remote hosts my machine is talking to and how much data
- get raw per-process network usage output for scripts
Features
- bandwidth by process, connection and remote address
- background reverse DNS
- choose interface
- tables can be shown separately
- cumulative totals
- unit families (bytes, bits, SI, binary)
- show DNS queries
- raw machine-friendly output
- Linux, macOS, Windows and Android binaries
Limitations
- In passive maintenance: critical issues are fixed but no new features are worked on1
- On Linux it needs capabilities set with setcap, or root1
Capabilities
| Has a command line tool | plan not known |
|---|
Alternatives
The same job
These do what bandwhich does.
