speedtest 是一个知名的网速测试工具,它是用 Python 写成的,可以使用 apt 或 pip 命令来安装。
sudo apt install speedtest-cli
或者
pip3 install speedtest-cli
使用的时候,可以直接运行 speedtest 命令即可: