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
Install the required packages with the below command.
# apt install gnupg1 apt-transport-https dirmngr

Add the below key for the repository.
# apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 379CE192D401AB61

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

Run the below command to uninstall another version of Speedtest, if installed.
# apt remove speedtest-cli

Update the packages list.
# apt update

Run the below command to install the tool to test the Internet connection speed.
# apt install speedtest

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

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

Alternative method
Before starting, it is always desirable to run repository refresh so that repos are already updated.
# apt-get update
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

Now installing the deb file downloaded
is to be done.
# apt-get install speedtest

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:

Type YES
to accept and run the speed test:

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