Test your internet speed from the terminal
Measure ping, download and upload speed without opening a browser.
01Command
$ speedtest-cli02What it does
speedtest-cli talks to speedtest.net servers the same way the browser test does, so you get real download and upload numbers. The --simple flag prints just three lines, which is ideal for scripts or pasting into a ticket. Use --list to pick a closer server for more accurate results.
03Risk
04Undo
✓No undo needed — this command does not change persistent state.
05Sources
- speedtest-cli(1) — Ubuntu manual pageEvidence: The Ubuntu man page documents speedtest-cli and its options for testing download/upload bandwidth.
- speedtest-cli(1) — manual pageEvidence: speedtest-cli runs a bandwidth test using speedtest.net from the command line; --simple prints ping, download and upload values only.
Last verified: 2026-09-18 · Category: Network
06Related solutions
One command that prints every interface with its state and IPv4/IPv6 addresses in a short table — the modern, memorable replacement for digging through `ifconfig` or the verbose `ip addr` output.
The classic forgotten-syntax command: `traceroute` shows every router between you and a destination plus the round-trip time of probes to each hop.
Add a UFW rule to permit inbound traffic on a TCP or UDP port, such as SSH on port 22.