Speedtest.web is a useful instrument for Linux server admins and fanatics because it helps them rapidly check ping, bandwidth, and different community data from the consolation of an internet site. Nonetheless, for nearly as good because the Speedtest.web web site is, it’s not very helpful for those who’re making an attempt to check the web connection of a distant server and don’t have entry to an internet browser.
Introducing Speedtest-cli: it’s a command-line utility that permits you to run Speedtest from the Linux terminal. It does all the pieces that the Speedtest web site does however with Linux command arguments. To set up this software program, you’ll want the most recent model of the Python programming language.
Set up Speedtest-cli
Speedtest-Cli is installable by way of many alternative Linux distribution’s software program sources. Additionally it is accessible by way of the supply code or the Python Package deal instrument.
Ubuntu
sudo apt set up speedtest-cli
Debian
sudo apt-get set up speedtest-cli
Arch Linux
Arch customers trying to set up Speedtest-cli might want to first allow the “Community” software program repository in /and so on/pacman.conf. To activate, launch a terminal and open pacman.conf with Nano.
sudo nano /and so on/pacman.conf
Scroll down and discover “Community.” Take away all situations of # from in entrance of “Community,” and the strains beneath it as nicely. After eradicating the # symbols, press Ctrl + O to avoid wasting the edits, and exit Nano with Ctrl + X.
Re-sync your Pacman to allow the Group repo.
sudo pacman -Syy
With the Group rep now up and operating in your Arch Linux PC, set up the speedtest-cli utility.
sudo pacman -S speedtest-cli
Fedora
sudo dnf set up speedtest-cli -y
OpenSUSE
sudo zypper set up speedtest-cli
Generic Linuxes Through Python PIP
When you can’t get the Speedtest-cli utility, you’ll be capable of get it going with Python and PIP. To begin the set up, open up a terminal window and guarantee you’ve got the most recent model of each Python and Pip. While you’ve decided you’ve got the most recent model of Python and Pip working in your Linux PC, set up Speedtest-cli with the next command.
Be aware: don’t attempt to use sudo throughout the set up, as it is going to mess up your Python growth atmosphere.
pip set up speedtest-cli
Generic Linuxes by way of constructing from supply
Going the Python Pip route on generic Linux distributions is normally the simplest technique to get it going in case your Linux distribution doesn’t care the software program. Nevertheless, if PIP doesn’t work, there’s one other resolution: constructing from supply.
Earlier than putting in Speedtest-cli by way of the Github supply code, set up the Python programming language, in addition to the Git instrument. Then, use the git clone command to seize the code.
git clone
Transfer your terminal into the speedtest-cli code folder and replace the contents’ permissions.
sudo chmod +x *
Run the set up instrument to get Speedtest-cli working in your Linux PC.
python setup.py set up
Use Speedtest-Cli
To run a primary web velocity check with the Speedtest-cli instrument, launch a terminal, and run speedtest-cli in it. What follows is a primary check of your ping, add, and obtain velocity. The outcomes of your web check will present up in textual content type when the method is full.
speedtest-cli
When you’re new to utilizing the terminal and need web check outcomes have been simpler to learn, add the easy modifier to speedtest-cli instructions.
speedtest-cli --simple
Obtain-only Take a look at
Need to work out your obtain velocity however don’t really feel like operating a full web velocity check? Attempt operating the speedtest-cli command with the no-upload modifier.
speedtest-cli --no-upload
Mix no-upload with the easy modifier for a straightforward to learn expertise.
speedtest-cli --no-upload --simple
Add-only Take a look at
Operating speedtest-cli with the no-download command will enable the person to do an “upload only” check.
speedtest-cli --no-download
For greatest outcomes, run with the easy modifier.
speedtest-cli --no-download --simple
View Graphical Outcomes
While you run an web velocity check on Speedtest.web, you’ve got the choice of viewing your community ends in a PNG picture. If you would like an image results of velocity checks you run with speedtest-cli within the terminal, add the share modifier.
speedtest-cli --share --simple
Speedtest With Bytes
Every web check you run with the speedtest-cli command is measured in bits. It’s the common customary for measuring velocity on the web. If this doesn’t sit proper with you, think about using the bytes modifier in your checks.
speedtest-cli --bytes
Export SpeedTest To CSV
Do you run velocity checks so much? Need to maintain observe of your knowledge? Contemplate operating the speedtest-cli command with the csv modifier. Utilizing this characteristic prints out check ends in the “csv” textual content format which is well pasteable in spreadsheet applications like Microsoft Excel or Libre Workplace Calc.
speedtest-cli --csv
Different Speedtest-cli Options
On this tutorial, we go over many alternative helpful options that you should utilize with speedtest-cli. Although, there are various different helpful options that we haven’t lined.
To entry the opposite Speedtest command-line options, run the next command in a terminal window.
speedtest-cli --help
Alternatively, save the assistance web page to a textual content file with:
speedtest-cli --help >> ~/Paperwork/speedtest-cli-commands.txt