Speedtest – measuring network speed on Linux servers
SpeedTest – a handy command-line utility for checking internet speed directly from your server. This tool lets you measure download speed, upload speed and network latency, which is especially useful when diagnosing network problems and assessing connection performance on remote servers.
Preparing for installation
The installation example uses the Ubuntu 20.04 LTS operating system. However, the process will be similar for other Linux distributions too.
Step-by-step SpeedTest installation
1. Updating the repositories
Let's start by updating the system's package lists and repositories:
sudo apt-get -y update2. Installing the curl utility
Let's install curl, which is needed to download the installation script:
apt-get install -y curl3. Downloading the SpeedTest installation files
Download the official SpeedTest installation script:
curl -s https://install.speedtest.net/app/cli/install.deb.sh | sudo bash4. Installing SpeedTest
After downloading the files, run the command to unpack and install SpeedTest:
sudo apt-get install speedtestUsing SpeedTest
After a successful installation, run the network speed test with a simple command:
speedtestOn the first run, you will be asked to accept the licence agreement. Once you accept the licence, the network speed test will begin.
Test results
When the test is complete, you will get detailed information about your connection speed, including:
- The server used for testing
- Latency (ping)
- Download speed (download)
- Upload speed (upload)
- Connection quality
This data will help you assess the real performance of your server's network connection and identify possible problems.
Additional options
SpeedTest CLI has several additional options, which you can view by running the command:
speedtest --helpThis will let you tailor the testing to your specific needs – choose a particular server, change the output format of the results or run a test without measuring upload speed.
Our resources
Telegram channel: https://t.me/
F3 Cloud: https://f3cloud.com