How to test Internet Connection Speed on Ubuntu 20.04

2021-05-31 By Mark 7047 Views linux ubuntu speed test
28 reviews

When you experience a slow internet access speed on your server, the first thing you need to do is check the connection speed to resolve the slow connectivity issues. The SpeedTest CLI helps to check the current internet speed of your Ubuntu 20.04 server from the command-line and it brings reliable technology and a global service network to the command line behind SpeedTest.


This tutorial will guide you on how to test Internet Connection Speed on Ubuntu 20.04


  1. Install the required packages with the below command.

    # apt install gnupg1 apt-transport-https dirmngr
    

    speedubuntu1

  2. Add the below key for the repository.

    # apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 379CE192D401AB61
    

    speedubuntu2

  3. Add the repository with the below command.

    # echo "deb https://ookla.bintray.com/debian generic main" | sudo tee /etc/apt/sources.list.d/speedtest.list
    

    speedubuntu3

  4. Run the below command to uninstall another version of Speedtest, if installed.

    # apt remove speedtest-cli
    

    speedubuntu4

  5. Update the packages list.

    # apt update
    

    speedubuntu5

  6. Run the below command to install the tool to test the Internet connection speed.

    # apt install speedtest
    

    speedubuntu6

  7. The below command help to run a simple Internet speed test on the server. Once you have executed the command, you will get an option to read the license and accept.

    # speedtest
    

    speedubuntu7

  8. Once accept the license, you will get the result as in the below image.

    speedubuntu8


Alternative method


Before starting, it is always desirable to run repository refresh so that repos are already updated.

# apt-get update


  1. Downloading the deb file via Curl command as the primary step for the speed test.

    # curl -s https://install.speedtest.net/app/cli/install.deb.sh | sudo bash
    

    ubuntuspeed1

  2. Now installing the deb file downloaded is to be done.

    # apt-get install speedtest
    

    ubuntuspeed2

  3. Once the installation has been finished, run the speed test using the command speedtest.

    # speedtest
    


    This will run the upload and download speed test for the Cloud Servers:

    ubuntuspeed3


    Type YES to accept and run the speed test:

    ubuntuspeed4


The above is a sample speed test performed in Cloud Servers. Please do follow the above steps to determine the speed test performed on Ubuntu 20.04 LTS Cloud Server.


Related Tutorials

What do you think about this article?

Rate this article
Need assistance?

Try this guide to receive free bundled services at signup on a new free account.

Sign Up

Your Feedback Is Important

We hope you’ll give the new products and updates a try. If you have an idea for improving our products or want to vote on other user ideas so they get prioritized, please submit your feedback on our Community platform. And if you have any questions, please feel free to ask in the Community or contact our Technical Support team.