When you experience a slow internet access speed on your server, the first thing you need to do is check the connection speed to resolve the slow connectivity issues. The SpeedTest CLI helps to check the current internet speed of your CentOS server from the command-line and it brings reliable technology and a global service network to the command line behind SpeedTest.
This tutorial will guide you on how to test Internet Connection Speed on CentOS.
Run the below command to install python on your system.
# dnf install python3 (CentOS 8)
# yum install python2 (CentOS 7)
Download the speedtest_cli.py file using the below command.
# wget -O speedtest-cli https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py
Run the below command to make the script file executable.
# chmod +x speedtest-cli
Now, you can check the internet speed on your system by using speedtest-cli command.
# ./speedtest-cli
To check the internet speed in bytes, run the below command.
# ./speedtest-cli --bytes
Related Tutorials