Monitoring network speed in Linux is essential for troubleshooting and optimizing network performance. Tools like speedtest-cli
and nethogs
are popular choices for this task. Here’s a quick guide to installing and using them. To install a netspeed monitor in Linux, you can use tools like speedtest-cli or nethogs. Here’s how you can install them:
1. Speedtest-cli: It’s a command-line interface for testing internet bandwidth using speedtest.net. To install it, open your terminal and run the following commands:
For Debian/Ubuntu-based systems:
1 2 3 4 5 6 |
sudo apt update sudo apt install speedtest-cli |
For Fedora:
1 2 3 4 5 |
sudo dnf install speedtest-cli |
For CentOS/RHEL:
1 2 3 4 5 |
sudo yum install speedtest-cli |
2. Nethogs: It’s a command-line tool used to monitor network traffic by process in real-time. To install it, use the following commands:
For Debian/Ubuntu-based systems:
1 2 3 4 5 6 |
sudo apt update sudo apt install nethogs |
For Fedora:
1 2 3 4 5 |
sudo dnf install nethogs |
For CentOS/RHEL:
1 2 3 4 5 |
sudo yum install nethogs |
Once installed, you can use these commands in the terminal to monitor your network speed or traffic.
Whether you need to measure your internet speed or monitor bandwidth usage by process, speedtest-cli
and nethogs
are excellent tools. With their straightforward installation and usability, they can be valuable additions to your Linux toolkit for network management.