How to check internet speed with the command line in Linux
Today, TipsMake.com will read how to check the speed of the Internet from the command line via Terminal in various popular Linux distributions, including Ubuntu, Fedora and Arch Linux.
Note that because Internet speed is measured by actually uploading and downloading from the server, you need to install a third-party utility to upload and download test data to the server, then measure the transfer rate. Let's get It Started!
Check Internet speed in Ubuntu, Linux Mint and elementary OS
This tutorial was tested on Ubuntu 17.10, but will work on older versions, as well as Ubuntu derivatives, including Linux Mint, elementary OS, etc.
1. Launch Terminal.
2. You should install the Speedtest command line utility, which has been around for a while and is reliable. Use this command:
sudo apt install speedtest-cli
You must enter the root password to complete the installation.
3. After the installation is completed, go ahead and start checking the Internet speed. Use this command in Terminal.
speedtest
Output:
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................
Check Internet speed in Fedora and derivatives
This tutorial was tested on Fedora 27, but will also work on older versions.
1. Launch Terminal.
2. We also use the same Speedtest utility in Fedora. The Speedtest utility is written in Python and so you need to have Python installed on your computer first.
sudo dnf install python
3. Install the Speedtest utility:
sudo dnf install speedtest-cli
4. Launch the utility:
speedtest-cli
Output:

Check Internet speed in Arch Linux, Manjaro and derivatives
This tutorial was tested on Manjaro 17, but also works on older versions, Arch Linux and derivatives.
1. Launch Terminal.
2. Enter the following command to download the Speedtest utility using the wget command .
wget -O speedtest-cli https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py
3. Make downloadable content possible by using the chmod + x command.
chmod +x speedtest-cli
4. Finally launch Speedtest to check your Internet speed.
./speedtest-cli
You should read it
- Internet speed test applications for smartphones
- How to check Internet speed with the Command Line
- 5 Chrome extension to test Internet speed
- How to Monitor Internet Speed over Time on PC or Mac
- Top 10 best speed test apps for Android smartphones
- Experience the new lag and upload speed feature of FAST.com
- Measuring the speed of Viettel, VNPT and FPT using Speed Of Me
- Checking Internet speed, Wifi FPT, VNPT network, Viettel does not need software
May be interested
- How to Check if Your ISP is Throttling Your Internet Speedyou're paying for high-speed internet, so why feel like you're stuck in the stone age? if your internet connection is slow for no good reason, it's probably being throttled — and there are a few ways you can check.
- How to Set up a Dial up Internet Connection in Linux Via the Command Linea walkthrough of dial-up internet with linux command line. your modem should be detected automatically by your distribution.
- 5 reasons why people love the Linux command linemany people are afraid of the command line. they see it as something for software developers or geeks. but the command line is merely another way of interacting with a pc, and there are some tasks that are very easy to do with the cli.
- Basic Linux commands everyone needs to knowwhen using linux, you should also learn basic linux commands to make operations quicker and easier. here are some basic commands on linux you should know.
- How to print from the Linux command lineprinting documents from the linux command line is easy. you use the lp command to request printing and lpq to see which print jobs are in the queue.
- How to use the last command in Linuxwant to know who, what time and which device to access your linux computer? please read the following article.
- How to check Internet package network FPT, VNPT, Viettel are usingregularly checking internet network packages fpt, vnpt, viettel are using the following ways to make it easier for you to monitor internet connection speed, and if you encounter any problems, you can contact immediately network operators to ensure that the line is always stable, without affecting your work or leisure time.
- How to check the desktop environment you are using on Linuxas you probably know, linux-based operating systems are heavily focused on the command line to perform operations. a minimal distro like arch linux will give you a dark terminal installation.
- How to schedule Linux commands with 'at'utility at very easy to use. users only need to give time and date as command line parameters, then enter one or more commands to execute.
- How to find the MAC address using the command line in Linuxtoday, tipsmake.com will talk about an important command in linux, ip. this command works on all linux distributions, including ubuntu, arch linux, debian, fedora, etc. '