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:
You can also generate the image using below command:
And get the help using –
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.
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.