Bandwhich – A Network Bandwidth Utilization Tool for Linux

Bandwhich, formerly known as “what”, is a terminal utility written in Rust programming language, which is used for monitoring current network bandwidth utilization by the process, connection, and remote IP/hostname. It sniffs a specified network interface and tracks IP packet size, cross-referencing it with the /proc filesystem on Linux and lsof on macOS.

Recommended Read: 16 Useful Bandwidth Monitoring Tools to Analyze Network Usage in Linux

Bandwhich is responsive to the terminal window size, shows lesser information if there isn’t much room for it. Also, it will strive to resolve IP addresses to their hostname in the background using reverse DNS.

How to Install Bandwhich in Linux Systems

This Bandwhich utility is a new utility and it is available to install on Arch Linux from the AUR repository using Yay.

Yay is an extremely good AUR helper written in Go, which is used as a Pacman wrapper to search and install packages from the AUR repository and update the entire system.

If Yay AUR Helper not installed, you can install it by cloning the git repo and building it using the following commands.

$ git clone
$ cd yay
$ makepkg -si
Install Yay AUR Helper in Arch Linux
Install Yay AUR Helper in Arch Linux

Once Yay installed, you can use it to install Bandwhich as shown.

$ yay -S bandwhich
Install Bandwhich in Arch Linux
Install Bandwhich in Arch Linux

On Other Linux distributions, bandwhich can be installed using the Rust package manager called cargo. To install Cargo on Linux, you need to install Rust programming language.

$ curl --proto '=https' --tlsv1.2 -sSf | sh

Once Rust installed on the system, you can simply use the cargo command to install Bandwhich in Linux systems.

$ cargo install bandwhich
Install Bandwhich in Linux
Install Bandwhich in Linux

This installs bandwhich to ~/.cargo/bin/bandwhich but you required root privileges to run it. To fix that, you need to create a symbolic link to the binary as shown.

$ sudo ln -s ~/.cargo/bin/bandwhich /usr/local/bin/

After that, you can able to run bandwhich command, instead of sudo ~/.cargo/bin/bandwhich as shown.

$ sudo bandwhich
Bandwhich - Monitor Network Usage in Linux
Bandwhich – Monitor Network Usage in Linux

For more usage and options, type:

$ sudo bandwhich --help

That’s It! Bandwhich is a useful command-line utility for displaying current network usage by process, connection and remote IP/hostname in Linux.

Tutorial Feedback...
Was this article helpful? If you don't find this article helpful or found some outdated info, issue or a typo, do post your valuable feedback or suggestions in the comments to help improve this article...

If You Appreciate What We Do Here On TecMint, You Should Consider:

TecMint is the fastest growing and most trusted community site for any kind of Linux Articles, Guides and Books on the web. Millions of people visit TecMint! to search or browse the thousands of published articles available FREELY to all.

If you like what you are reading, please consider buying us a coffee ( or 2 ) as a token of appreciation.

Support Us

We are thankful for your never ending support.

Got something to say? Join the discussion.

Have a question or suggestion? Please leave a comment to start the discussion. Please keep in mind that all comments are moderated and your email address will NOT be published.