CentOS Linux using command-line test network speed / bandwidth,

Installation speedtest-cli

speedtest-cli is a lightweight Linux command line tool written in Python, Python2.4 to operate over the 3.4 version. It is based on measuring the infrastructure Speedtest.net / down rate of the network. Speedtest-cli installation is very simple - just download the Python script file.

  1. # wget https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py
  2. # chmod +rx speedtesti.py
  3. # sudo mv speedtest.py /usr/local/bin/speedtest-cli
  4. # sudo chown root:root /usr/local/bin/speedtest-cli

Use network speed test speedtest-cli

Use speedtest-cli command is very simple, it does not require any parameters to work.

  1. # speedtest-cli

After you enter this command, it will automatically find your nearest Speedtest.net server (geographical distance), then print out a test on the network / downlink rate. Note: As some test point is abroad, need to repeatedly test, the result was correct.

Guess you like

Origin www.cnblogs.com/rui517hua20/p/11280165.html