Test Internet Connection Speed Using CLI

You can check internet connection speed in Linux using speedtest-cli tool. Below are the steps. (Tested On – AlmaLinux 9.4)

1.  Install package epel-release as below

# dnf install epel-release -y

2.  Install speedtest-cli package as below.

# dnf install speedtest-cli -y

3. Run the command speedtest-cli. You can see following type of results.

[root@ns1 ~]# speedtest-cli
Retrieving speedtest.net configuration...
Testing from BSNL (117.247.82.180)...
Retrieving speedtest.net server list...
Selecting best server based on ping...
Hosted by D Nex Technology Pvt ltd (Nagpur) [0.23 km]: 36.128 ms
Testing download speed..............................................................
Download: 84.33 Mbit/s
Testing upload speed................................................................
Upload: 80.31 Mbit/s
[root@ns1 ~]#