Command Line Apps to Perform a Internet Speed Test on Linux

Chưa phân loại
Internet connection speed tests are helpful for finding out network connection problems, ISP throttling, server throttling, or other connectivity issues. This article will list some of the most popular methods to conduct speed tests in Linux using command line apps.


Fast-cli is a command line utility to check download and upload speeds of your network. It is based on website made by Netflix and a series of tests are run on Netflix’s own production servers.

To install Fast-cli on Ubuntu, run the commands below:

$ sudo apt install npm
$ npm install –global fast-cli

To check network speed using Fast-cli, run the command below:

$ fast –upload


Speedtest-cli is a command line utility that uses to check network bandwidth speed. It can check both download and upload speeds as well as server response time.

To install Speedtest-cli in Ubuntu, run the commands below:

$ wget -O speedtest-cli
$ chmod +x speedtest-cli

To perform a speed test using speedtest-cli, run the command below:

$ ./speedtest-cli –simple


Wget is a command line download manager that can fetch files using HTTP, HTTPS and FTP protocols.

To install wget in Ubuntu, run the command below:

$ sudo apt install wget

To perform a download speed test (without upload), run the command below:

$ wget -O /dev/null -q –show-progress

The command above uses free speed test service provided by Linode for testing their servers. You can replace “newark” part in the command above with any other server listed on Linode’s speed test page available here.


Youtube-dl is a command line utility to download YouTube files in various audio and video formats. It is possible to check download speed by downloading a YouTube video using youtube-dl.

To install youtube-dl in Ubuntu, run the command below:

$ sudo apt install youtube-dl

To perform a speedtest using youtube-dl, run the following command:

$ youtube-dl -f best –no-part –no-cache-dir -o /dev/null –newline

The command above downloads a video from KDE Community YouTube channel. You can replace the YouTube URL with your own. The “/dev/null” part ensures that video is not saved anywhere on the filesystem.

The biggest advantage of using youtube-dl to perform a speedtest is its built-in option to bypass geo restrictions. To download a video from a different country, use the command below:

$ youtube-dl -f best –no-part –no-cache-dir -o /dev/null
–newline –geo-bypass-country US

Replace the “US” part with any other ISO 3166-2 country code.


Curl is a command line utility that allows data transfer using URLs. These URLs are not limited to HTTP protocol only, as curl supports many other standards. Curl is used a lot for testing and interacting with RESTful APIs.

To install curl in Ubuntu, run the command below:

$ sudo apt install curl

To perform a speedtest using curl, use the following command:

$ curl -o /dev/null

The command above uses Digital Ocean servers to test the network speed. You can replace the URL with any other Digital Ocean server listed here.

Note that curl displays speed in KB/sec. To convert it to MB/sec (similar to wget’s output), you have to multiply the result with 0.001. The speed in the screenshot above would be 6794 KB/sec * 0.001 = 6.794 MB/sec.


Aria2 is a command line download manager for Linux. It can pause and resume downloads from servers that support resuming. It also provides an option for multi-threaded downloading.

To install aria2 in Ubuntu, run the command below:

$ sudo apt install aria2c

To perform a speedtest using aria2, run the command below:

$ aria2c -d /dev -o null –allow-overwrite=true –file-allocation=none

Ignore the error shown in the screenshot above. The command above uses Digital Ocean’s server to do a speedtest (as explained earlier). You can replace the URL with any other Digital Ocean server listed here.


These are some of the methods you can use to test network speed using command line apps. If you are just looking to test download speed, wget is pretty straightforward to use. For testing both download and upload speeds, use fast-cli or speedtest-cli app.

ONET IDC thành lập vào năm 2012, là công ty chuyên nghiệp tại Việt Nam trong lĩnh vực cung cấp dịch vụ Hosting, VPS, máy chủ vật lý, dịch vụ Firewall Anti DDoS, SSL… Với 10 năm xây dựng và phát triển, ứng dụng nhiều công nghệ hiện đại, ONET IDC đã giúp hàng ngàn khách hàng tin tưởng lựa chọn, mang lại sự ổn định tuyệt đối cho website của khách hàng để thúc đẩy việc kinh doanh đạt được hiệu quả và thành công.
Bài viết liên quan

Best desktop environments for Debian

Under Linux the desktop environment, or graphical environment is independent of the OS (Operating system) in contrast to...

Top 20 Best Webscraping Tools

Data lives more on the web than any other place. With the rise in social media activity and development of more web applications...

CentOS Package Search

Whenever you’re looking for a package/software to enjoy, there are several ways you can get that into your Linux system....
Bài Viết

Bài Viết Mới Cập Nhật


Mua Proxy v6 US Private chạy PRE, Face, Insta, Gmail

Mua shadowsocks và hướng dẫn sữ dụng trên window

Tại sao Proxy Socks lại được ưa chuộng hơn Proxy HTTP?

Mua thuê proxy v4 nuôi zalo chất lượng cao, kinh nghiệm tránh quét tài khoản zalo