Check Your Internet Speed from Command Line in Ubuntu [Quick Tip]

1 min


Check your internet speed directly from command line in Linux.

speedtest-cli is a command line utility for checking internet bandwidth using popular internet speed test site speedtest.net.  Written in python, speedtest-cli works nicely from command line and gives upload and download speed. You can also share the image generated by speedtest-cli from command line.

How to Install

For Ubuntu and its derivatives, run below commands from terminal to install speedtest-cli.

sudo apt-get install python-pip
sudo pip install speedtest-cli

 

How to Use

Once installed, open terminal and type below command:

speedtest-cli

speedtest-cli

You can also generate the image using below command:

speedtest-cli --share

5604592014

And get the help using –

speedtest-cli -h

usage: speedtest-cli [-h] [--bytes] [--share] [--simple] [--list]
[--server SERVER] [--mini MINI] [--source SOURCE]
[--timeout TIMEOUT] [--secure] [--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
--bytes Display values in bytes instead of bits. Does not affect
the image generated by --share
--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
--timeout TIMEOUT HTTP timeout in seconds. Default 10
--secure Use HTTPS instead of HTTP when communicating with
speedtest.net operated servers
--version Show the version number and exit

The project is in GitHub and report any bugs here.

speedtest-cli is a nice little tool which can be used now and then to check your internet bandwidth. DO you know any other cli tool like this? Drop a comment below.

 


Arindam

Creator and author of debugpoint.com. Connect with me via Telegram, 𝕏 (Twitter), or send us an email.
Subscribe
Notify of
guest

This site uses Akismet to reduce spam. Learn how your comment data is processed.

1 Comment
Newest
Oldest Most Voted
Inline Feedbacks
View all comments