How to Test Internet Speed on Linux

Step 1: Python can be installed on your machine by executing the command that is provided in the following section.

[root@dinisoft]# dnf install python2 -y

Step 2: Using the command that is given below, download the file called speedtest_cli.py.

[root@dinisoft]# wget -O speedtest-cli https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py

Step 3: To make the script file executable, use the command that is listed below.

[root@dinisoft]# chmod +x speedtest-cli

Step 4: You are now able to test the speed of your system's internet connection by using the speedtest-cli command.

[root@dinisoft]# python2 speedtest-cli

Step 5: Execute the following command to determine how fast your internet connection is in bytes.

[root@dinisoft]# python2 speedtest-cli --bytes

 

##################Ookla#########################

[root@dinisoft]# rpm -qa | grep speedtest | xargs -I {} sudo yum -y remove {}

[root@dinisoft]# curl -s https://packagecloud.io/install/repositories/ookla/speedtest-cli/script.rpm.sh | sudo bash

[root@dinisoft]# sudo yum install speedtest

Now Type

[root@dinisoft]# speedtest

  • Internet Speed, Linux, Cloudlinux, Terminal
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to backup sql database with terminal

To dump a single database, run the command below to dump the database and write the output text...

How To Set Up a Firewall Using FirewallD on CentOS 7

sudo yum install firewalld sudo systemctl enable firewalld sudo reboot sudo...

How to Enable Firewalld on centos 7

sudo systemctl status firewalld sudo systemctl enable firewalldsudo systemctl unmask --now...

How to Install VIM editor on CentOS

vim sudo yum install vim-enhanced -y