Install speedtest-cli in CentOS, Ubutnu, Fedora and Linux Mint


Conventionally we use speedtest.net flash to monitor and find our internet speed in Ubuntu, but it uses Flash interface. Sometimes we will not feel comfortable to use flash interface. So there is another simple and easy way to find the internet speed. We can use speedtest-cli as replacement for speedtest.net, which is an command line interface.

Download speedtest-cli from official website GitHub.

It test your internet speed using the most popular website speedtest.net. This speedtest-cli has the following features.

  •  It  supports in listing servers sorted by distance.
  • And also helps to make tests against specific server.
  • You can use this speedtest-cli with speedtest mini server which generates URL to the speedtest.net that shares result images.

Today in this post find the code to install speedtest-cli into your system.

Installation of speedtest-cli:

STEP 1:    

sudo apt-get install python-pip

We can install speedtest-cli using Python Pip. Execute the following command in the terminal.

sudo pip install speedtest-cli

STEP 2:    

We can test internet connection speed from the command line using the server based on ping. To do this execute the following command.

speedtest-cli

Either you can use “speedtest” command for “speedtest-cli”. To do so run the following command. I have used “speed test” command in this post.

speedtest

STEP 3:

To test the internet speed and share result image URL, execute the following command.

speedtest --share

STEP 4:

This command line application also supports few other parameters and we can also view them using the “help” command and to display the speedtest.net servers, test against the given server, simply execute the following command.

speedtest -h

When you execute the above command the you can find the other parameters as listes below.

usage: speedtest [-h] [--share] [--simple] [--list]
                     [--server SERVER] [--mini MINI] [--source SOURCE]
                     [--version]
Command line interface for testing internet bandwidth using
speedtest.net.
-----------------------------------------------------------------------
https://github.com/sivel/speedtest-cli

optional arguments:
  -h, --help       show this help message and exit
  --share          Generate and provide a URL to the speedtest.net
                   share results image
  --simple         Suppress verbose output, only show basic
                   information
  --list           Display a list of speedtest.net servers sorted by
                   distance
  --server SERVER  Specify a server ID to test against
  --mini MINI      URL of the Speedtest Mini server
  --source SOURCE  Source IP address to bind to
  --version        Show the version number and exit

And that’s it we have successfully completed the installation process of “speedtest-cli” in your system.

 

STEP 5: 

If wish to upgrade the current  version of “speedtest-cli” then execute the following command in terminal.

sudo pip install speedtest-cli --upgrade

And now start testing your internet speed in Ubuntu by the super helping “speedtest-cli”.

 

5:40 pm