{"id":690,"date":"2024-11-20T13:07:12","date_gmt":"2024-11-20T13:07:12","guid":{"rendered":"https:\/\/www.hyderabadwebhosting.co.in\/tutorials\/?p=690"},"modified":"2024-12-04T10:30:26","modified_gmt":"2024-12-04T10:30:26","slug":"how-to-test-network-speed-in-linux-via-cli","status":"publish","type":"post","link":"https:\/\/www.hyderabadwebhosting.co.in\/tutorials\/how-to-test-network-speed-in-linux-via-cli\/","title":{"rendered":"How to Test Network Speed in Linux via CLI"},"content":{"rendered":"<p>Testing network speed in Linux via the command line can be achieved using a variety of tools.<\/p>\n<p>Below is the common and simple method to know the Network speed.<\/p>\n<p class=\"h3\">Prerequisites<\/p>\n<ul class=\"wp-block-list\">\n<li>A machine running Linux<\/li>\n<li>sudo \/ root permissions<\/li>\n<li>Access to a terminal \/ command-prompt window<\/li>\n<\/ul>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_85 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.hyderabadwebhosting.co.in\/tutorials\/how-to-test-network-speed-in-linux-via-cli\/#Test_Network_Speed_on_Linux_Via_Command_Line\" >Test Network Speed on Linux Via Command Line<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.hyderabadwebhosting.co.in\/tutorials\/how-to-test-network-speed-in-linux-via-cli\/#Using_speedtest-cli_to_Test_Internet_Speed\" >Using speedtest-cli to Test Internet Speed<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<h2 id=\"ftoc-heading-1\" class=\"wp-block-heading ftwp-heading\"><span class=\"ez-toc-section\" id=\"Test_Network_Speed_on_Linux_Via_Command_Line\"><\/span>Test Network Speed on Linux Via Command Line<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>The tools in this guide help you check the Internet and LAN speed on a Linux machine. <strong>The article uses Ubuntu 22.04 <\/strong>for instructions, but the utilities work for any Linux distribution.<\/p>\n<h3 id=\"ftoc-heading-2\" class=\"wp-block-heading ftwp-heading\"><span class=\"ez-toc-section\" id=\"Using_speedtest-cli_to_Test_Internet_Speed\"><\/span>Using speedtest-cli to Test Internet Speed<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>One of the most famous online internet connection test apps is speedtest.net. To install <a href=\"https:\/\/www.hyderabadwebhosting.co.in\/tutorials\/how-to-test-network-speed-in-linux-via-cli\/\">Speedtest<\/a> on Linux via the terminal, use a package manager for your distro.<\/p>\n<p>On Ubuntu, enter:<\/p>\n<pre>sudo apt install speedtest-cli<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-691 size-full\" src=\"https:\/\/www.hyderabadwebhosting.co.in\/tutorials\/wp-content\/uploads\/2024\/11\/speed-test-for-blog.png\" alt=\"Network Speed\" width=\"764\" height=\"609\" srcset=\"https:\/\/www.hyderabadwebhosting.co.in\/tutorials\/wp-content\/uploads\/2024\/11\/speed-test-for-blog.png 764w, https:\/\/www.hyderabadwebhosting.co.in\/tutorials\/wp-content\/uploads\/2024\/11\/speed-test-for-blog-300x239.png 300w\" sizes=\"auto, (max-width: 764px) 100vw, 764px\" \/><\/p>\n<p>Optionally, use <strong><code>pip<\/code><\/strong> to install speedtest-cli in Python:<\/p>\n<pre>sudo pip install speedtest-cli<\/pre>\n<p><span id=\"span-87-157\" class=\"ct-span oxy-stock-content-styles\">To run the test, type:<\/span><\/p>\n<pre>speedtest<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-693 size-large\" src=\"https:\/\/www.hyderabadwebhosting.co.in\/tutorials\/wp-content\/uploads\/2024\/11\/speed-test-blocker.tndev_.in_-1024x194.png\" alt=\"Network Speed\" width=\"1024\" height=\"194\" srcset=\"https:\/\/www.hyderabadwebhosting.co.in\/tutorials\/wp-content\/uploads\/2024\/11\/speed-test-blocker.tndev_.in_-1024x194.png 1024w, https:\/\/www.hyderabadwebhosting.co.in\/tutorials\/wp-content\/uploads\/2024\/11\/speed-test-blocker.tndev_.in_-300x57.png 300w, https:\/\/www.hyderabadwebhosting.co.in\/tutorials\/wp-content\/uploads\/2024\/11\/speed-test-blocker.tndev_.in_-768x146.png 768w, https:\/\/www.hyderabadwebhosting.co.in\/tutorials\/wp-content\/uploads\/2024\/11\/speed-test-blocker.tndev_.in_.png 1029w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p><span id=\"span-87-157\" class=\"ct-span oxy-stock-content-styles\">The standard <strong>speedtest-cli<\/strong> output shows all steps, including selecting a server. To display a shorter output, enter:<\/span><\/p>\n<pre>speedtest -simple<\/pre>\n<p><span id=\"span-87-157\" class=\"ct-span oxy-stock-content-styles\">The test is simple to use and provides multiple options. To view all of them, pass the <strong><code>-h<\/code> <\/strong>flag to display the <em>speedtest-cli<\/em> help file.<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Testing network speed in Linux via the command line can be achieved using a variety of tools. Below is the common and simple method to know the Network speed. Prerequisites A machine running Linux sudo \/ root permissions Access to a terminal \/ command-prompt window Test Network Speed on Linux Via Command Line The tools [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[42,66],"tags":[],"class_list":["post-690","post","type-post","status-publish","format-standard","hentry","category-linux","category-ssh"],"_links":{"self":[{"href":"https:\/\/www.hyderabadwebhosting.co.in\/tutorials\/wp-json\/wp\/v2\/posts\/690","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hyderabadwebhosting.co.in\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hyderabadwebhosting.co.in\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hyderabadwebhosting.co.in\/tutorials\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hyderabadwebhosting.co.in\/tutorials\/wp-json\/wp\/v2\/comments?post=690"}],"version-history":[{"count":6,"href":"https:\/\/www.hyderabadwebhosting.co.in\/tutorials\/wp-json\/wp\/v2\/posts\/690\/revisions"}],"predecessor-version":[{"id":696,"href":"https:\/\/www.hyderabadwebhosting.co.in\/tutorials\/wp-json\/wp\/v2\/posts\/690\/revisions\/696"}],"wp:attachment":[{"href":"https:\/\/www.hyderabadwebhosting.co.in\/tutorials\/wp-json\/wp\/v2\/media?parent=690"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hyderabadwebhosting.co.in\/tutorials\/wp-json\/wp\/v2\/categories?post=690"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hyderabadwebhosting.co.in\/tutorials\/wp-json\/wp\/v2\/tags?post=690"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}