speedtest-cli是一個用Python編寫的輕量級Linux命令行工具,在Python2.4至3.4版本下均可運行。它基於Speedtest.net的基礎架構來測量網絡的上/下行速率。安裝speedtest-cli很簡單——只需要下載其Python腳本文件。
安裝speedtest-cli
# cd /usr/local/bin/
# wget https://raw.github.com/sivel/speedtest-cli/master/speedtest_cli.py
# chmod a+rx speedtest_cli.py
# chown root:root /usr/local/bin/speedtest_cli.py
mv speedtest_cli.py speedtest_cli
使用speedtest-cli測試網速
speedtest_cli
如果你願意分享測試結果,你可以使用參數“–share”。它將會把你的測試結果上傳到Speedtest.net服務器並以圖形的方式分享給其他人。
最後的那個share results地址就是分享所得到的圖片,複製網址到瀏覽器