Speedtest CLI¶
Speedtest is a command line interface for testing internet bandwidth using speedtest.net.
Setup on any device: https://www.speedtest.net/apps
Or install speedtest CLI app: https://www.speedtest.net/apps/cli
HOW TO INSTALL SPEEDTEST¶
Fedora/Centos/Redhat¶
curl -s https://packagecloud.io/install/repositories/ookla/speedtest-cli/script.rpm.sh | sudo bash
sudo yum install speedtest
Debian/Ubuntu (download and install package)¶
wget --content-disposition "https://packagecloud.io/ookla/speedtest-cli/packages/debian/jessie/speedtest_1.2.0.84-1.ea6b6773cf_amd64.deb/download.deb?distro_version_id=25"
dpkg -i speedtest_1.2.0.84-1.ea6b6773cf_amd64.deb
HOW TO USE SPEEDTEST¶
The easiest way of using speedtest is just by invoking it without options in the terminal.
First you need to accept the license by typing: YES
.
Then the application will select the closest available server to test the connection against, and display the download and upload speed:
Example on Debian / Ubuntu¶
root@test:~# speedtest
==============================================================================
You may only use this Speedtest software and information generated
from it for personal, non-commercial use, through a command line
interface on a personal computer. Your use of this software is subject
to the End User License Agreement, Terms of Use and Privacy Policy at
these URLs:
https://www.speedtest.net/about/eula
https://www.speedtest.net/about/terms
https://www.speedtest.net/about/privacy
==============================================================================
Do you accept the license? [type YES to accept]: yes
License acceptance recorded. Continuing.
==============================================================================
Ookla collects certain data through Speedtest that may be considered
personally identifiable, such as your IP address, unique device
identifiers or location. Ookla believes it has a legitimate interest
to share this data with internet providers, hardware manufacturers and
industry regulators to help them understand and create a better and
faster internet. For further information including how the data may be
shared, where the data may be transferred and Ookla's contact details,
please see our Privacy Policy at:
http://www.speedtest.net/privacy
==============================================================================
Do you accept the license? [type YES to accept]: yes
License acceptance recorded. Continuing.
Speedtest by Ookla
Server: 2 Cloud Ltd - Riga (id: 40557)
ISP: Sia Veesp
Idle Latency: 0.63 ms (jitter: 0.05ms, low: 0.58ms, high: 0.67ms)
Download: 833.50 Mbps (data used: 907.6 MB)
0.74 ms (jitter: 0.19ms, low: 0.52ms, high: 2.10ms)
Upload: 991.97 Mbps (data used: 1.6 GB)
0.75 ms (jitter: 0.26ms, low: 0.55ms, high: 10.27ms)
Packet Loss: 0.0%
Result URL: https://www.speedtest.net/result/c/ab2a575f-12de-4318-83e1-e1d05af024ac
By default, the program runs a test against the closest speedtest.net server.
If you want to force the test against a specific server, first generate the list of available servers:
Closest servers:
ID Name Location Country
==============================================================================
1348 AS Balticom Riga Latvia
1268 Tet Riga Latvia
2148 Latvijas Mobilais Telefons Riga Latvia
5834 SIA Bite Latvija Riga Latvia
19456 GARMTECH Riga Latvia
24424 LIVAS Riga Latvia
8455 DEAC Riga Latvia
7322 Telenet, sia Riga Latvia
44717 Octopus Telecom Riga Latvia
40557 2 Cloud Ltd Riga Latvia
Now, to test the connection against a specific server, run with the -s
option and server ID:
speedtest -s 1348
Speedtest by Ookla
Server: AS Balticom - Riga (id: 1348)
ISP: Sia Veesp
Idle Latency: 1.12 ms (jitter: 0.33ms, low: 0.85ms, high: 1.66ms)
Download: 906.21 Mbps [======\ ] 33% - latency: 3.96 ms ^C
In this tutorial we saw how to install and use the speedtest application. The program is basically the command line interface equivalent of running a speed test on the https://www.speedtest.net site, and can be very useful when operating on a machine without a graphical server installed.