{"id":6017,"date":"2021-04-26T11:32:39","date_gmt":"2021-04-26T11:32:39","guid":{"rendered":"https:\/\/linuxways.net\/?p=6017"},"modified":"2021-04-26T11:32:39","modified_gmt":"2021-04-26T11:32:39","slug":"test-your-internet-speed-through-command-line-in-centos-8","status":"publish","type":"post","link":"https:\/\/linuxways.net\/de\/centos\/test-your-internet-speed-through-command-line-in-centos-8\/","title":{"rendered":"Test your Internet Speed through Command-Line in CentOS 8"},"content":{"rendered":"<p>The Linux system provides a very useful tool for checking the internet speed of your internet connection through a python-based CLI tool known as \u2018Speedtest-cli\u2019. Speedtest utility is so helpful for testing real-time internet speed. Most of the users prefer to solve their problems through the command line environment on Linux distribution. Therefore, the Speedtest is a command-line tool that allows users to conveniently test the internet speed via the terminal.<\/p>\n<p>We will explore in this article today, how to install the Speedtest CLI tool on CentOS 8 and using Speedtest utility how to check internet speed via terminal.<\/p>\n<h2><strong>Installing and testing internet speed through Speedtest-cli utility on CentOS 8<\/strong><\/h2>\n<p>The Speedtest-cli is a python-based utility that is written in the python language. So, to install the Speedtest-cli utility make sure that python should be installed on your system before. Check the installed python version on your CentOS 8 system by executing the below-mentioned command:<\/p>\n<pre>$ python --version<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1088\" height=\"130\" class=\"wp-image-6018\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/04\/word-image-288.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/04\/word-image-288.png 1088w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/04\/word-image-288-300x36.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/04\/word-image-288-1024x122.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/04\/word-image-288-768x92.png 768w\" sizes=\"auto, (max-width: 1088px) 100vw, 1088px\" \/><\/p>\n<p>The installed version should display in the output. Otherwise, it will give you an error. If python is installed then, move further on to the installation of the Speedtest-cli tool. In our case, python is already installed on this system.<\/p>\n<h2><strong>Install python on CentOS 8<\/strong><\/h2>\n<p>This is a required step for the successful installation of the Speedtest-cli tool on your system. First, we will need to install python on our CentOS 8 system if it is not already installed. Type the below-mentioned command for python installation on CentOS 8:<\/p>\n<pre>$ sudo yum install python3-pip<\/pre>\n<p>Now, you can install the speedtest-cli utility on your system through two different methods.<\/p>\n<ol>\n<li>Install speedtest-cli utility using the python-pip tool<\/li>\n<li>Manually download and install Speedtest-cli.py script<\/li>\n<\/ol>\n<h2><strong>Method 1: Install speedtest-cli utility using the python-pip tool<\/strong><\/h2>\n<p>The Speedtest-cli utility can be installed directly on your CentOS 8 system through the python-pip tool by using the following command:<\/p>\n<pre>$ sudo pip3 install speedtest-cli<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1103\" height=\"297\" class=\"wp-image-6019\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/04\/word-image-289.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/04\/word-image-289.png 1103w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/04\/word-image-289-300x81.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/04\/word-image-289-1024x276.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/04\/word-image-289-768x207.png 768w\" sizes=\"auto, (max-width: 1103px) 100vw, 1103px\" \/><\/p>\n<p>Once the installation of the speedtest-cli utility is completed, issue the following command to test your internet speed:<\/p>\n<pre>$ speedtest-cli<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1090\" height=\"364\" class=\"wp-image-6020\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/04\/word-image-290.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/04\/word-image-290.png 1090w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/04\/word-image-290-300x100.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/04\/word-image-290-1024x342.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/04\/word-image-290-768x256.png 768w\" sizes=\"auto, (max-width: 1090px) 100vw, 1090px\" \/><\/p>\n<h2><strong>Method 2: Manually download and install Speedtest.py script<\/strong><\/h2>\n<p>To check the internet speed through this method, you need to perform the following steps:<\/p>\n<h3><strong>Step 1: Download speedtest.py script<\/strong><\/h3>\n<p>Download the speedtest.py script file by using the \u2018wget\u2019 command:<\/p>\n<pre>$ wget -O speedtest-cli <a href=\"https:\/\/raw.githubusercontent.com\/sivel\/speedtest-cli\/master\/speedtest.py\">https:\/\/raw.githubusercontent.com\/sivel\/speedtest-cli\/master\/speedtest.py<\/a><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1098\" height=\"485\" class=\"wp-image-6021\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/04\/word-image-291.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/04\/word-image-291.png 1098w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/04\/word-image-291-300x133.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/04\/word-image-291-1024x452.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/04\/word-image-291-768x339.png 768w\" sizes=\"auto, (max-width: 1098px) 100vw, 1098px\" \/><\/p>\n<h3><strong>Step 2: Make executable<\/strong><\/h3>\n<p>Once the above speedtest.py file is downloaded, issue the following command to make this file executable:<\/p>\n<pre>$ chmod +x speedtest-cli<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1092\" height=\"91\" class=\"wp-image-6022\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/04\/word-image-292.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/04\/word-image-292.png 1092w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/04\/word-image-292-300x25.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/04\/word-image-292-1024x85.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/04\/word-image-292-768x64.png 768w\" sizes=\"auto, (max-width: 1092px) 100vw, 1092px\" \/><\/p>\n<h3><strong>Step 3: Internet speed test through speedtest-cli utility<\/strong><\/h3>\n<p>Now, check the internet speed through the speedtest utility by using the following command:<\/p>\n<pre>$ .\/speedtest-cli<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1094\" height=\"427\" class=\"wp-image-6023\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/04\/word-image-293.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/04\/word-image-293.png 1094w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/04\/word-image-293-300x117.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/04\/word-image-293-1024x400.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/04\/word-image-293-768x300.png 768w\" sizes=\"auto, (max-width: 1094px) 100vw, 1094px\" \/><\/p>\n<p>By default, it shows the internet speed in bits. But, to display the internet speed in bytes, use the command which is given below:<\/p>\n<pre>$ .\/speedtest-cli --bytes<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1096\" height=\"362\" class=\"wp-image-6024\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/04\/word-image-294.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/04\/word-image-294.png 1096w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/04\/word-image-294-300x99.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/04\/word-image-294-1024x338.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/04\/word-image-294-768x254.png 768w\" sizes=\"auto, (max-width: 1096px) 100vw, 1096px\" \/><\/p>\n<h3><strong>Step 4: Generate URL to share speed test results<\/strong><\/h3>\n<p>If you want to share your internet speed test result with someone then, type the following command:<\/p>\n<pre>$ .\/speedtest-cli --share<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1106\" height=\"360\" class=\"wp-image-6025\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/04\/word-image-295.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/04\/word-image-295.png 1106w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/04\/word-image-295-300x98.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/04\/word-image-295-1024x333.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/04\/word-image-295-768x250.png 768w\" sizes=\"auto, (max-width: 1106px) 100vw, 1106px\" \/><\/p>\n<p>The above command will generate a URL. Copy this Url and paste in the web browser the following results shows in your browser:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1121\" height=\"593\" class=\"wp-image-6026\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/04\/word-image-296.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/04\/word-image-296.png 1121w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/04\/word-image-296-300x159.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/04\/word-image-296-1024x542.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/04\/word-image-296-768x406.png 768w\" sizes=\"auto, (max-width: 1121px) 100vw, 1121px\" \/><\/p>\n<p>Similarly, to generate URL in bytes type the following command:<\/p>\n<pre>$ .\/speedtest-cli --share --bytes<\/pre>\n<h2><strong>Conclusion<\/strong><\/h2>\n<p>We have discussed two different methods through which you can install the Speedtest utility on your CentOS 8 system. In this article, we have also shown how to test the internet speed through the Speedtest-cli utility and how to generate URLs to share with others.<\/p>","protected":false},"excerpt":{"rendered":"<p>The Linux system provides a very useful tool for checking the internet speed of your internet connection through a python-based CLI tool known as \u2018Speedtest-cli\u2019. Speedtest utility is&hellip;<\/p>","protected":false},"author":1,"featured_media":6089,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[93,162],"class_list":["post-6017","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-centos","tag-centos-8","tag-internet-speed"],"_links":{"self":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/6017","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/comments?post=6017"}],"version-history":[{"count":0,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/6017\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media\/6089"}],"wp:attachment":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media?parent=6017"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/categories?post=6017"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/tags?post=6017"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}