Use command lines to test the network speed in CentOS

Source: Internet
Author: User
Speedtest.net provides the command line tool speedtest-cli. in Linux, we can use speedtest-cli to test the broadband speed. speedtest-cli is a lightweight Linux command line tool compiled by Python based on Speedtest.net. architecture to measure the network's upstream/downstream speed running environment: python2.4-3.4 github: https://github.com/siv Speedtest.net provides a command line tool speedtest-cli we can use speedtest-cli in Linux to test broadband speed
Speedtest-cli is a lightweight Linux command line tool compiled by Python. it is based on the infrastructure of Speedtest.net to measure the uplink/downlink speed of the network.
Running environment: Python2.4-3.4
Github: https://github.com/sivel/speedtest-cli
Download speedtest-cli.py and change permissions # wget https://raw.github.com/sivel/speedtest-cli/master/speedtest_cli.py# Chmod a + rx speedtest_cli.py use speedtest-cli # the content below is the echo content (the whole process takes a little time) **************************************** ************************ Retrieving speedtest.net configuration... retrieving speedtest.net server list... testing from China Unicom ###### (0.0.0.0 )... selecting best server based on ping... hosted by Vladlink (synchronized Vostok) [509.76]: 14.623 msTesting download speed .................................... .... download: 2.10 Mbit/sTesting upload speed .................................. ................ upload: 0.41 Mbit/s ************************************ * *************************** # speedtest-cli-husage: speedtest-cli [-h] [-- share] [-- simple] [-- list] [-- server SERVER] [-- mini MINI] [-- source SOURCE] [-- version] Command line interface for testing internet bandwidth using speedtest.net. -------------------------------------------------------------------------- https://github.com/sivel/speedtest-cli Optional arguments:-h, -- help show this help message and exit -- share Generate and provide a URL to the speedtest.net share results image -- simple Suppress verbose output, only show basic information -- list Display a list of speedtest.net servers sorted by distance -- server SERVER Specify a server ID to test against -- mini mini url of the Speedtest Mini server -- source SOURCE Source source IP address to bind to -- version Show the version number and exit # If you want to easily use speedtest-cli, you can perform the following operations on the speedtest-cli.py # sudo mv speedtest_cli.py/usr/local/bin/speedtest-cli # sudo chown root: root/usr/local/bin/speedtest-cli
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.