{"id":3885,"date":"2021-01-27T19:35:59","date_gmt":"2021-01-27T19:35:59","guid":{"rendered":"https:\/\/linuxways.net\/?p=3885"},"modified":"2021-01-27T20:00:23","modified_gmt":"2021-01-27T20:00:23","slug":"use-speedtest-cli-to-test-internet-speed-on-ubuntu-20-04","status":"publish","type":"post","link":"https:\/\/linuxways.net\/de\/ubuntu\/use-speedtest-cli-to-test-internet-speed-on-ubuntu-20-04\/","title":{"rendered":"Use Speedtest CLI to Test Internet Speed on Ubuntu 20.04"},"content":{"rendered":"<h2>Introduction:<\/h2>\n<p>Speedtest is a very useful utility for testing your Internet speed in real-time. However, while working with Linux based systems, most of the users prefer such tools that can be used via the terminal. Therefore, the Speedtest utility also comes in a CLI version that can conveniently be used with the Linux terminal. Today, we will be installing and using the Speedtest CLI to test our Internet speed on Ubuntu 20.04.<\/p>\n<h2>Method of Installing and Using the Speedtest CLI for Testing the Internet Speed on Ubuntu 20.04:<\/h2>\n<p>For installing and using the Speedtest CLI for testing the Internet speed on your Ubuntu 20.04 system, you have to perform the following steps:<\/p>\n<h3>Step # 1: Update your Ubuntu 20.04 System:<\/h3>\n<p>Since we will be installing some new packages in the upcoming steps, therefore, it is highly advisable that we update our system first with the command shown below:<\/p>\n<pre><strong>sudo apt update<\/strong><\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"412\" height=\"31\" class=\"wp-image-3886\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-467.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-467.png 412w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-467-300x23.png 300w\" sizes=\"auto, (max-width: 412px) 100vw, 412px\" \/><\/strong><\/p>\n<p>Once your Ubuntu 20.04 system is fully updated, its terminal will look something like this:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"719\" height=\"533\" class=\"wp-image-3887\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-468.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-468.png 719w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-468-300x222.png 300w\" sizes=\"auto, (max-width: 719px) 100vw, 719px\" \/><\/p>\n<h3>Step # 2: Install Python on Ubuntu 20.04 System:<\/h3>\n<p>Now, we need to install Python on our Ubuntu 20.04 system. This step is mandatory for the successful installation of the Speedtest CLI utility on our Ubuntu 20.04 system. Python can be installed with the following command:<\/p>\n<pre><strong>sudo apt-get install python3-pip<\/strong><\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"569\" height=\"30\" class=\"wp-image-3888\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-469.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-469.png 569w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-469-300x16.png 300w\" sizes=\"auto, (max-width: 569px) 100vw, 569px\" \/><\/strong><\/p>\n<p>It will take around two to three minutes for the Python installation to complete on your Ubuntu 20.04 system after which you will be able to see the messages shown in the image below on your screen:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"719\" height=\"530\" class=\"wp-image-3889\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-470.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-470.png 719w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-470-300x221.png 300w\" sizes=\"auto, (max-width: 719px) 100vw, 719px\" \/><\/p>\n<h3>Step # 3: Install the Speedtest CLI Utility on your Ubuntu 20.04 System:<\/h3>\n<p>After the successful installation of Python, we can conveniently install the Speedtest CLI utility on our Ubuntu 20.04 system with the following command:<\/p>\n<pre><strong>sudo pip3 install speedtest-cli<\/strong><\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"559\" height=\"30\" class=\"wp-image-3890\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-471.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-471.png 559w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-471-300x16.png 300w\" sizes=\"auto, (max-width: 559px) 100vw, 559px\" \/><\/strong><\/p>\n<p>The successful installation of the Speedtest CLI utility on your Ubuntu 20.04 system will display messages similar to the ones shown in the image below on your terminal:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"611\" height=\"123\" class=\"wp-image-3891\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-472.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-472.png 611w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-472-300x60.png 300w\" sizes=\"auto, (max-width: 611px) 100vw, 611px\" \/><\/p>\n<h3>Step # 4: Use the Speedtest CLI Utility for Testing the Internet Speed on your Ubuntu 20.04:<\/h3>\n<p>Now, we can easily use the Speedtest CLI utility for testing the Internet speed of our Ubuntu 20.04 system with the following command:<\/p>\n<pre><strong>speedtest-cli<\/strong><\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"396\" height=\"31\" class=\"wp-image-3892\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-473.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-473.png 396w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-473-300x23.png 300w\" sizes=\"auto, (max-width: 396px) 100vw, 396px\" \/><\/strong><\/p>\n<p>It will take a few seconds for this utility to fetch real-time data from the Internet after which you will be able to see a full-fledged report on your Ubuntu 20.04 terminal as shown in the image below:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"720\" height=\"240\" class=\"wp-image-3893\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-474.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-474.png 720w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-474-300x100.png 300w\" sizes=\"auto, (max-width: 720px) 100vw, 720px\" \/><\/p>\n<h2>Bonus Tip:<\/h2>\n<p>If you want to share your Internet speed with someone, you can easily generate a shareable link for that which anyone can open in his\/her browser to view your Internet speed. The shareable link can be generated by running the following command:<\/p>\n<pre><strong>speedtest-cli --share<\/strong><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"470\" height=\"28\" class=\"wp-image-3894\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-475.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-475.png 470w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-475-300x18.png 300w\" sizes=\"auto, (max-width: 470px) 100vw, 470px\" \/><\/p>\n<p>The shareable link for our current Internet speed is highlighted in the image shown below:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"719\" height=\"261\" class=\"wp-image-3895\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-476.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-476.png 719w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-476-300x109.png 300w\" sizes=\"auto, (max-width: 719px) 100vw, 719px\" \/><\/p>\n<p>Now, we will attempt to copy and paste this link in our browser as shown in the following image:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"732\" height=\"257\" class=\"wp-image-3896\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-477.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-477.png 732w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-477-300x105.png 300w\" sizes=\"auto, (max-width: 732px) 100vw, 732px\" \/><\/p>\n<p>When we will press the Enter key, we will be able to see an image of our Internet speed report within our browser as shown in the image below:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"730\" height=\"390\" class=\"wp-image-3897\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-478.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-478.png 730w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-478-300x160.png 300w\" sizes=\"auto, (max-width: 730px) 100vw, 730px\" \/><\/p>\n<h2>Method Uninstalling the Speedtest CLI from Ubuntu 20.04:<\/h2>\n<p>The uninstallation method of the Speedtest CLI utility is a bit tricky as you have to remove the packages in the reverse order of installation. We have explained all the steps below:<\/p>\n<h3>Step # 1: Remove the Speedtest CLI Utility from your Ubuntu 20.04 System:<\/h3>\n<p>First, you have to remove the Speedtest CLI utility from your Ubuntu 20.04 system with the following command:<\/p>\n<pre><strong>sudo pip3 uninstall speedtest-cli<\/strong><\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"577\" height=\"38\" class=\"wp-image-3898\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-479.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-479.png 577w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-479-300x20.png 300w\" sizes=\"auto, (max-width: 577px) 100vw, 577px\" \/><\/strong><\/p>\n<p>After running this command, you will receive a success message on your terminal as shown in the image below:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"686\" height=\"231\" class=\"wp-image-3899\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-480.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-480.png 686w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-480-300x101.png 300w\" sizes=\"auto, (max-width: 686px) 100vw, 686px\" \/><\/p>\n<h3>Step # 2: Remove Python from your Ubuntu 20.04 System:<\/h3>\n<p>Now, you need to remove Python from your Ubuntu 20.04 system with the following command:<\/p>\n<pre><strong>sudo apt-get purge python3-pip<\/strong><\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"551\" height=\"29\" class=\"wp-image-3900\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-481.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-481.png 551w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-481-300x16.png 300w\" sizes=\"auto, (max-width: 551px) 100vw, 551px\" \/><\/strong><\/p>\n<p>This command will ensure that Python gets removed along with all of its configuration files after which you will see these messages on your terminal:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"716\" height=\"316\" class=\"wp-image-3901\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-482.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-482.png 716w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-482-300x132.png 300w\" sizes=\"auto, (max-width: 716px) 100vw, 716px\" \/><\/p>\n<h3>Step # 3: Remove all the Additional Packages and Dependencies that are no longer needed on your Ubuntu 20.04 System:<\/h3>\n<p>Finally, we can also remove all those packages and dependencies that are no longer needed after uninstalling the above two packages. This can be done by executing the command shown below:<\/p>\n<pre><strong>sudo apt-get autoremove<\/strong><\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"490\" height=\"28\" class=\"wp-image-3902\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-483.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-483.png 490w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-483-300x17.png 300w\" sizes=\"auto, (max-width: 490px) 100vw, 490px\" \/><\/strong><\/p>\n<p>Once the goal of this command will be accomplished, it will display these messages on the terminal:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"685\" height=\"389\" class=\"wp-image-3903\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-484.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-484.png 685w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/01\/word-image-484-300x170.png 300w\" sizes=\"auto, (max-width: 685px) 100vw, 685px\" \/><\/p>\n<h2>Conclusion:<\/h2>\n<p>By going through today\u2019s article, you will easily be able to install and use the Speedtest CLI utility to test your Internet speed while using Ubuntu 20.04. Finally, when you no longer want to use this utility, then you can conveniently uninstall it with the method prescribed in this article.<\/p>","protected":false},"excerpt":{"rendered":"<p>Introduction: Speedtest is a very useful utility for testing your Internet speed in real-time. However, while working with Linux based systems, most of the users prefer such tools&hellip;<\/p>","protected":false},"author":3,"featured_media":3907,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[162,161,100],"class_list":["post-3885","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ubuntu","tag-internet-speed","tag-speedtest","tag-ubuntu-20-04"],"_links":{"self":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/3885","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\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/comments?post=3885"}],"version-history":[{"count":0,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/3885\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media\/3907"}],"wp:attachment":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media?parent=3885"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/categories?post=3885"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/tags?post=3885"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}