Speedtes 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
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
curl -s https://packagecloud.io/install/repositories/ookla/speedtest-cli/script.rpm.sh | sudo bash sudo yum install speedtest |
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
sudo apt-get install curl curl -s https://packagecloud.io/install/repositories/ookla/speedtest-cli/script.deb.sh | sudo bash sudo apt-get install speedtest |
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 typing: YES, then the application will select the closest available server to test the connection against, then it will display the download and upload speed:
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
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 we want to force the test against a specific server, we first have to generate the list of the available ones:
Code Block | ||||
---|---|---|---|---|
| ||||
root@test:~# speedtest -L 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, we run the command with the -s option, providing the server ID (which is reported in the first column of the list) as the argument:
Code Block | ||||
---|---|---|---|---|
| ||||
root@test:~# speedtest -s 1348 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 |
Info |
---|
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. |