您想学习如何使用命令行在Ubuntu Linux上测试Internet链接速度吗? 在本教程中,我们将向您展示如何仅使用运行Ubuntu Linux版本17的计算机的控制台来测试您的Internet链接速度。

硬件清单:

以下部分介绍了用于创建此Ubuntu Linux教程的设备列表。

上面列出的每一件硬件都可以在亚马逊网站上找到。

Ubuntu Playlist:

在此页面上,我们提供了与Ubuntu Linux相关的视频列表的快速访问。

不要忘记订阅我们命名的youtube频道 FKIT.

Ubuntu相关教程:

在此页面上,我们提供了与Ubuntu linux相关的教程列表的快速访问。

教程 - 在Ubuntu Linux上测试Internet速度

在Linux控制台上,使用以下命令安装所需的软件包。

# apt-get update
# apt-get install python-pip
# pip install speedtest-cli

使用以下命令测试Internet链接速度:

# speedtest-cli

Retrieving speedtest.net configuration...
Testing from Amazon.com (34.212.39.68)...
Retrieving speedtest.net server list...
Selecting best server based on ping...
Hosted by Pocketinet Communications (Walla Walla, WA) [98.03 km]: 11.558 ms
Testing download speed.....
Download: 638.99 Mbit/s
Testing upload speed.....
Upload: 657.27 Mbit/s

使用以下命令测试Internet链接速度并以MBytes / sec显示结果:

# speedtest-cli --bytes

Retrieving speedtest.net configuration...
Testing from Amazon.com (34.212.39.68)...
Retrieving speedtest.net server list...
Selecting best server based on ping...
Hosted by Pocketinet Communications (Walla Walla, WA) [98.03 km]: 9.276 ms
Testing download speed.....
Download: 77.09 Mbyte/s
Testing upload speed.....
Upload: 82.85 Mbyte/s

使用以下命令获取可用服务器列表以测试Internet链接速度:

# speedtest-cli --list

使用以下命令使用列表中的特定服务器测试链接速度:

# speedtest-cli --server 14612

Retrieving speedtest.net configuration...
Testing from Amazon.com (34.212.39.68)...
Retrieving speedtest.net server list...
Retrieving information for the selected server...
Hosted by NET Serviços (Rio de Janeiro) [10821.45 km]: 264.618 ms
Testing download speed.....
.Download: 125.95 Mbit/s
Testing upload speed.....
Upload: 84.85 Mbit/s