bschelst/ March 1, 2017/ Linux/ 0 comments

There are different possibilities to run internet speed tests from Linux (and unix) commandline. But personally I don’t always want to install extra applications on the servers.
Because of that, I use the following command line. The only thing what is needed, is wget & python. Those 2 product are most of the time already installed.

 

wget -O - https://raw.github.com/sivel/speedtest-cli/master/speedtest.py | python 

It should return something like this:

[[email protected]~]# wget -O - https://raw.github.com/sivel/speedtest-cli/master/speedtest.py | python --2017-03-02 00:32:30--  https://raw.github.com/sivel/speedtest-cli/master/speedtest.py Resolving raw.github.com (raw.github.com)... 151.101.192.133, 151.101.0.133, 151.101.128.133, ... Connecting to raw.github.com (raw.github.com)|151.101.192.133|:443... connected. HTTP request sent, awaiting response... 301 Moved Permanently Location: https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py [following] --2017-03-02 00:32:30--  https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.192.133, 151.101.0.133, 151.101.128.133, ... Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.192.133|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 44521 (43K) [text/plain] Saving to: ‘STDOUT’  100%[==================================================================================================================================>] 44,521      --.-K/s   in 0.006s  2017-03-02 00:32:31 (6.57 MB/s) - written to stdout [44521/44521]  Retrieving speedtest.net configuration... Testing from MYSERVER (178.19.10.125)... Retrieving speedtest.net server list... Selecting best server based on ping... Hosted by Tilaa B.V. (Amsterdam) [1.75 km]: 4.388 ms Testing download speed................................................................................ Download: 231.99 Mbit/s Testing upload speed.................................................................................................... Upload: 161.19 Mbit/s 
Share this Post

Leave a Comment

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>
*
*

two × 3 =