Linux / Unix: Test Internet Connection Speed From SSH Command

You can test the internet connection speed from the command line using the speedtest-cli tool. This tool can be installed on Linux or Unix systems using the package manager for your distribution, such as apt, yum, or homebrew.

Here is an example of how to install and use speedtest-cli on a Debian/Ubuntu system:

  1. Install speedtest-cli:
sudo apt update
sudo apt install speedtest-cli
  1. Run the speed test:
speedtest-cli

The output of the speed test will include the ping time to the test server, the download speed, and the upload speed.

Note: speedtest-cli requires a working Python interpreter and the speedtest.net test servers. If your system does not have a Python interpreter installed, you can install one using the package manager for your distribution. If you have a firewall or network restriction that prevents access to the speedtest.net test servers, you may not be able to run the speed test.

(Ultram)

Leave a Comment