Serverspace Black Friday
JH
Joe Harris
December 29, 2020
Updated May 19, 2023

How to Test Internet Connection Speed in Ubuntu 20.04

Linux Networks Ubuntu

Using another OS?

Select the desired version or distribution.

A situation often arises when you need to determine the bandwidth of the Internet channel. In the desktop version of the operating system, it is enough to enter the corresponding request into a search engine and measure the speed on any of the search results sites. But if it needs to be done in the server version, the method will be different. In this tutorial, we are going to take a look at how to test Internet connection speed on Ubuntu 20.04. All commands must be run as root.

Install Speedtest

To install Speedtest you need to add its repository. Install the required packages first.

apt install gnupg1 apt-transport-https dirmngr

Add a key for the repository.

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

Add the repository itself.

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

Uninstall another version of Speedtest, if installed.

apt remove speedtest-cli

Update the packages list.

apt update

Finally, install a tool to test Internet connection speed.

apt install speedtest-cli

Internet connection speed test

To run a simple Internet speed test, run:

speedtest-cli

Read the license and accept it.

Do you accept the license? [type YES to accept]:

You will see the results when the test is complete:

Speedtest by Ookla
Server: Some Server
ISP: Your ISP
Latency: 1.22 ms (0.04 ms jitter)
Download: 82.59 Mbps (data used: 41.5 MB)
Upload: 91.69 Mbps (data used: 41.3 MB)
Packet Loss: 0.0%
Result URL: https://www.speedtest.net/result/c/4f200375-d643-...

You can share the result using the Result URL.
You can choose another server to test the speed. Enter this command to see the nearest servers:

speedtest -L

To select one of them, enter the following command with the server ID instead of "1111":

speedtest -s 1111

To see all available options, enter:

speedtest --help
Vote:
4 out of 5
Аverage rating : 4
Rated by: 10
1101 CT Amsterdam The Netherlands, Herikerbergweg 292
+31 20 262-58-98
700 300
ITGLOBAL.COM NL
700 300
We use cookies to make your experience on the Serverspace better. By continuing to browse our website, you agree to our
Use of Cookies and Privacy Policy.