While troubleshooting your system for slow internet access, the best way to figure is to measure the internet speed first. To check Internet speed on Linux we will be using third party tool speedtest_cli. It is a simple command-line client based on python for measuring internet bandwidth using speedtest.net infrastructure.
Test Download/Upload speed in Linux: You can use this command to test the download and upload speed from the Linux command line, it is a one-time usage command:
wget -O - https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py | python
Install Speedtest_cli: The above command was a one-time use command, so every time you want to test you need to put a long command in. So you can Install the speedtest_cli in your system using these commands:
wget https://raw.github.com/sivel/speedtest-cli/master/speedtest.py chmod a+rx speedtest.py sudo mv speedtest.py /usr/local/bin/speedtest sudo chown root:root /usr/local/bin/speedtest
Once the installation is done you can simply type “speedtest in the terminal and your results will be there
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.