Linux下,使用speedtest测试网络的上/下行速率

888u

Last update at :2024-04-20,Edit by888u

speedtest is a lightweight Linux command line tool written in Python and can be run under Python versions 2.4 to 3.4. It is based on Speedtest.net's infrastructure to measure the network's up/down speed. Installing speedtest is easy - just download its Python script file.

Use under SSH: 1. Installation

wget https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py chmod a+rx speedtest.py mv speedtest.py /usr/local/bin/speedtest chown root:root /usr/local/bin/speedtest

2. Use

speedtest

After entering this command, it will automatically discover the Speedtest.net server closest to you (geographical distance), and then print out the tested network up/down speed.

speedtest --share

This command will upload your test results to the Speedtest.net server and share them graphically with others.

speedtest --list

This command will print out all Speedtest.net servers (sorted by geographical distance from you).

speedtest --server 935

In the above list, each server is preceded by its corresponding ID. If you want to use a specified server to test your network speed, you only need to specify its ID after the speedtest-cli command. For example, if you want to use a server in Washington DC, you only need to specify the corresponding server ID (such as 935).

Project address: https://github.com/sivel/speedtest-cli

Recommended site searches: ip138 website query, free external network server, registration-free virtual space, US website server, Foshan high-defense server, me domain name, how to register a domain name, asp.net space, which Hong Kong space is better, free website domain name Register,

Linux下,使用speedtest测试网络的上/下行速率

All copyrights belong to 888u unless special state
取消
微信二维码
微信二维码
支付宝二维码