Internet speed is known in our country, not enough. I believe that will develop over time. There are a lot of websites available (speedof, fast, testmy) to check that the companies we receive internet service give us the speed of the package we choose one-to-one, but in general, use is a popular speedtest site.
When you open the site through the browser, you will see a single button. You can start the speed test by clicking on this button.


But what I’m trying to say in this article is not to do a speed test graphically, but to do it through the console.
To do this, we need to download the console script of speedtest to our computer.[baglanti_kare]
What is Speedtest-cli?
It is a script written in python programming language that measures internet speed in two directions (download, upload).

How to Install Speedtest-cli?
It can be installed in two ways, you can install the package with apt-get if you want, you can install it with a python pip. Or you can choose the more troublesome path and upload it manually.
Before installing with apt-get, it is worth updating the system with the apt-get update command.
apt-get install speedtest-cli
pip install speedtest-cli
For manual installation, you can download speedtest-cli from the Github page and run the script with speedtest_cli.py after you give the run permission.[goruntu_kare]
wget https://github.com/sivel/speedtest-cli/archive/master.zip
unzip master.zip
cd speedtest-cli-master/
chmod 755 speedtest_cli.py
[baglanti_kare]
Speedtest-cli Usage
Without giving any arguments through the console
speedtest-cli
you can start the speed test by typing. After waiting a while, it will show you where you are testing, which server you connect to, ping time between you and the server, and downlaoad, upload speed.[adsense_resim][adsense_resim_akilli_kare_amp][partner_yatay_amp]
Retrieving speedtest.net configuration...
Testing from Turk Telekom (88.230.173.229)...
Retrieving speedtest.net server list...
Selecting best server based on ping...
Hosted by IsimKayit.com (Kocaeli) [46.36 km]: 25,131 ms
Testing download speed................................................................................................................................................................................................................................................................................
Download: 10.82 Mbit/s
Testing speed.............................................................................................................................................................................................................................................................................................................................................
Upload: 2.91 Mbit/s
Perform a speed test with arguments
You can personalize the speed test a little more by adding arguments.
Speed result bit slated to get byte instead of byte
speedtest-cli --bytes
we’re writing. [goruntu_yatay]

If you want to get the speed result as a picture
speedtest-cli --share
we start the test with the code and when it’s over, it gives you a picture link. This image contains information such as download, upload speed, ping value, date on which the test was performed.


If you want a simpler result, you can perform the speed test with this argument.
speedtest-cli --simple

It only allows you to show ping value, download and upload speed.
You can use the following command for more options and help.
speedtest-cli --help
Result
This script is generally useful for home users, even if it is useful for home users to work for those who deal with the server. It takes less time to go into the site and take a speed test, and it’s 🙂 more effortless
[goruntu_kare][baglanti_kare]
Update
I want to add an update here. Another thing to be careful about speed test is which channel your modem broadcasts on.
Today, due to city life, many wifi broadcasting devices have to work together. For this reason, the channel on which wifi devices broadcast is another issue that should be considered for internet speed. I leave another article written in more detail on this subject below. You can increase the speed of your internet a little more by reading the article written here and changing the channel of your home wifi network.