Linux - Speed Test from Command Line

We frequently are asking how to run a speed test when using a command line version of Linux.

A GitHub user created a great speed test CLI script to interface with

Obtain the script:

wget -O speedtest-cli

Make the script executable:

chmod +x speedtest-cli

Now that we can execute the script the simplest operation is to run it. This will find the closest test server and provide you with download and upload speeds.


The Script can do so much more. Here are are some some examples.

List all servers:

./speedtest-cli --list

Use specific servers (SERVER = server ID):

./speedtest-cli --server SERVER