如何在Linux中使用命令行测试互联网速度

时间:2020-02-23 14:39:03  来源:igfitidea点击:

在Ubuntu,Linux Mint和基本操作系统中测试互联网速度

第1步)启动"终端"。

步骤2)我建议安装"速度测试"命令行实用程序,这些命令行实用程序已经存在了一段时间和值得信赖的。
使用此命令:

sudo apt install speedtest-cli

我们必须输入root密码以完成安装。

步骤3)安装完成后,继续测试互联网速度。
使用终端中的命令命令。

speedtest
Retrieving speedtest.net configuration...
Testing from Time Warner Cable (xxx.xx.xxx.xx)...
Retrieving speedtest.net server list...
Selecting best server based on ping...
Hosted by BrescoBroadBand (Columbus, OH) [xx km]: xxx ms
Testing download speed................................................................................
Download: 18.62 Mbit/s
Testing upload speed................................................................................................

在Fedora和衍生品中测试互联网速度

本教程在Fedora 27上进行了测试,但也应该在旧版本上工作。

第1步)启动"终端"。

步骤2)我们也将在Fedora中使用相同的实用程序'SpeedTest'。
SpeedTest实用程序是用Python编写的,因此我们需要首先在计算机中安装Python。

sudo dnf install python

第3步)安装SpeedTest实用程序:

sudo dnf install speedtest-cli

步骤4)启动该实用程序:

speedtest-cli

在Arch Linux,Manjaro和衍生品中测试互联网速度

本教程在Manjaro 17上进行了测试,但也应该在旧版本,拱门Linux和衍生品上工作。

第1步)启动"终端"。

步骤2)使用WGet命令输入以下命令以下载"SpeedTest"实用程序。

wget -O speedtest-cli https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py

步骤3)使用chmod + x命令进行下载的内容可执行。

chmod +x speedtest-cli

第4步)最后启动SpeedTest来测试互联网速度。

./speedtest-cli