How to test internet bandwidth in Linux Terminal (cli)

Want to test your internet bandwidth without opening web browser? Well, here’s command line tool to do this using speedtest.net. This may be help on Linux servers that doesn’t have a GUI. The tool is based on Python 2.4-3.3 To install the tool, speedtest-cli:

1.) First install python-pip, a tool for installing and managing Python packages. To do so, run below command:

# sudo apt-get install python-pip

2.) Install speedtest-cli via python-pip:

# sudo pip install speedtest-cli

Once installed, you can use one command to test your internet bandwidth. The command is:

# speedtest

You’ll see the similar output, which display you internet bandwidth as well as ISP & IP address.

Retrieving speedtest.net configuration…
Retrieving speedtest.net server list…
Testing from M-net Telekommunikations GmbH (88.217.180.40)…
Selecting best server based on ping…
Hosted by InterNetX GmbH (Munich) [2.23 km]: 18.756ms
Testing download speed………………………………….
Download: 7.81 Mbit/s
Testing upload speed…………………………………………..
Upload: 3.46 Mbit/s

Password Reset
Please enter your e-mail address. You will receive a new password via e-mail.

Power by

Download Free AZ | Free Wordpress Themes