Bandwhich is a free and open source command-line bandwidth utilization for Linux and MacOS. Using this tool you can get the real time bandwidth utilization of your current network by your system process, connection and remote IP/hostname. It is a good network monitor tool. It is released under open source MIT License. You can easily find what is taking up your bandwidth in your computer system. Its working principle is simple, First it sniffs the current network interface and records IP packet size and after that it cross referencing it with the /proc filesystem on linux or lsof on macOS.
Install Bandwhich on Ubuntu
You can install bandwhich via the pre build linux binary. Download the pre build Linux binary from the below download page and save it in your Downloads folder. Then right click on the downloaded .tar.gz bandwhich file and select Extract here. It will extract .tar.gz file.
At the time of writing the downloaded file name is “bandwhich-v0.22.2-x86_64-unknown-linux-musl.tar.gz”. and the extracted folder name is “bandwhich-v0.22.2-x86_64-unknown-linux-musl” You can change the below commands based on your downloaded file. It will change based on the bandwhich version. Open your terminal app (ctrl+alt+t) and run this command
cd Downloads
then run
cd bandwhich-v0.22.2-x86_64-unknown-linux-musl
Here “bandwhich-v0.22.2-x86_64-unknown-linux-musl” is extracted file name. The run below commands.
sudo chmod +x ~ bandwhich
sudo install bandwhich /usr/local/bin
You can start bandwhich by this command.
sudo bandwhich
For the complete usage details.
sudo bandwhich -h