← 返回命令列表

Linux command

speedtest 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Run speed test

speedtest

List servers

speedtest --servers

Use specific server

speedtest --server-id [12345]

Output as JSON

speedtest --format json

Accept license

speedtest --accept-license

Show progress

speedtest --progress yes

说明

speedtest is the official command-line interface from Ookla for measuring internet connection performance. It tests download speed, upload speed, latency (ping), and jitter by connecting to Ookla's global network of test servers. The tool automatically selects the nearest server for testing, though specific servers can be chosen by ID. Results include detailed metrics about connection quality, and structured output formats (JSON, CSV) enable integration with monitoring scripts and dashboards. First-run usage requires accepting the Ookla license agreement and GDPR terms. The CLI is a compiled binary distributed separately from the Python-based speedtest-cli, and uses Ookla's native testing methodology for more accurate results.

参数

--servers
List nearby servers.
--server-id _ID_
Select server.
--format _FMT_
Output format (json, csv).
--progress _BOOL_
Show progress.
--accept-license
Accept EULA.
--accept-gdpr
Accept privacy terms.

FAQ

What is the speedtest command used for?

speedtest is the official command-line interface from Ookla for measuring internet connection performance. It tests download speed, upload speed, latency (ping), and jitter by connecting to Ookla's global network of test servers. The tool automatically selects the nearest server for testing, though specific servers can be chosen by ID. Results include detailed metrics about connection quality, and structured output formats (JSON, CSV) enable integration with monitoring scripts and dashboards. First-run usage requires accepting the Ookla license agreement and GDPR terms. The CLI is a compiled binary distributed separately from the Python-based speedtest-cli, and uses Ookla's native testing methodology for more accurate results.

How do I run a basic speedtest example?

Run `speedtest` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does --servers do in speedtest?

List nearby servers.