If you’re using Ubuntu and want to quickly check your internet speed without opening a browser or using a graphical application, you’re in the right place. The Ubuntu speed test command line provides powerful tools that can help you perform network speed tests directly from the Terminal.
In this article, we’ll explore the best Ubuntu speed test command line tools for testing internet speed on Ubuntu, how to install them, and how to interpret the results. Whether you’re a system administrator, a developer, or just a Linux enthusiast, mastering these tools will help you monitor and troubleshoot your internet connection effectively.
Why Use the Command Line for Speed Tests?
Running speed tests from the command line has several advantages:
- Lightweight: No need for a graphical interface.
- Remote Access: Works on headless servers via SSH.
- Automatable: Can be scripted or scheduled with cron.
- Faster: Results without loading websites or ads.
Best Tools for Ubuntu Speed Test Command Line
Here are the top tools to test internet speed from Ubuntu Terminal:
- Speedtest CLI by Ookla
- Fast CLI by Fast.com
- nload (for real-time monitoring)
- iperf3 (for custom server-client tests)
- wget or curl (for manual download speed check)
Let’s go through each one in detail.
1. Speedtest CLI (by Ookla)
The most popular tool for command-line speed testing is Speedtest CLI, developed by Ookla—the same company that runs Speedtest.net.
How to Install:
How to Run a Speed Test:
This will test download speed, upload speed, & ping to the nearest Speedtest server.
Sample Output:
Additional Options:
List available servers:
Specify server ID:
Output as JSON (for scripting):
2. Fast CLI (by Netflix)
Fast.com is another reliable service for speed testing, created by Netflix. You can use their Fast CLI tool to test download speed from their servers.
Install Fast CLI:
Note: You’ll need Node.js and npm installed. If not, install them with:
Run Speed Test:
Example Output:
It’s minimal, but fast and very accurate for download testing.
3. nload – Real-Time Bandwidth Monitor
While not a traditional speed test tool, nload is better for real-time monitoring of incoming & outgoing customer.
Install nload:
Run:
You’ll follow real-time graphs of download & upload traffic. Start a large file download in another terminal to monitor throughput.
Use Case:
- See actual bandwidth usage
- Monitor usage during large file transfers
4. iperf3 – For Advanced Testing Between Systems
iperf3 is ideal for customized speed tests between two devices (local or remote). You need to run it in both client and server modes.
Install iperf3:
On Server (Remote Machine):
On Client (Your Machine):
Example Output:
Use Case:
Testing LAN or VPS-to-VPS speed
Benchmarking server throughput
5. curl or wget – Basic File Download Test
If you want a rough idea of your download speed, use wget or curl to download a large test file from a fast server.
Using wget:
Using curl:
Watch the Output:
These tools will show download progress and speed in MB/s or KB/s.
Note:
These are not comprehensive tests (no upload or ping).
They’re useful for testing performance to a specific server.
Bonus Tip: Automate Speed Tests with Cron
You can automate everyday speed tests with a cron job and save results to a file.
Step 1: Create a Script
Paste:
Step 2: Make It Executable
Step 3: Add to Cron
Add:
This logs the speed test daily at 9 AM.
Interpreting the Results
Ping (Latency)
Measures response time to the server
<20 ms is excellent
20–100 ms is good
100+ ms can be noticeable in gaming and video calls
Download Speed
Most important for streaming, browsing, downloads
25 Mbps+ for 4K streaming or large downloads
Upload Speed
Important for video conferencing, cloud uploads
5 Mbps+ is decent for Zoom/Teams calls
Conclusion
Testing your internet speed from the Ubuntu command line is fast, accurate, and ideal for advanced users or administrators. Tools like Speedtest CLI, Fast CLI, and iperf3 offer powerful capabilities, from quick checks to in-depth diagnostics.
Whether you’re troubleshooting network issues, monitoring server bandwidth, or automating performance logs, these tools give you complete control—without ever leaving the Terminal.



