Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

linux speedtest

# Ubuntu/Debian
sudo apt-get install curl
curl -s https://packagecloud.io/install/repositories/ookla/speedtest-cli/script.deb.sh | sudo bash
sudo apt-get install speedtest
# Fedora/Centos/Redhat
curl -s https://packagecloud.io/install/repositories/ookla/speedtest-cli/script.rpm.sh | sudo bash
sudo yum install speedtest
# FreeBSD 13
sudo pkg add "https://install.speedtest.net/app/cli/ookla-speedtest-1.2.0-freebsd13-x86_64.pkg"
# Then run the command:
speedtest
Comment

speedtest linux

brew tap teamookla/speedtestbrew update
# Example how to remove conflicting or old versions using brew
# brew uninstall 
speedtest --forcebrew install speedtest --force
Comment

Install speedtest on linux

Install speedtest-cli Using Python Script

$ wget -O speedtest-cli https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py
$ chmod +x speedtest-cli

OR

$ curl -Lo speedtest-cli https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py
$ chmod +x speedtest-cli 

Move the executable to /usr/bin folder, so that you don’t need to type the full path every time.
$ sudo mv speedtest-cli /usr/bin/

Install speedtest-cli Using Package Manager
------ On Ubuntu/Debian/Mint ------ 
$ curl -s https://install.speedtest.net/app/cli/install.deb.sh | sudo bash
$ sudo apt-get install speedtest

------ On RHEL/CentOS/Fedora ------
$ curl -s https://install.speedtest.net/app/cli/install.rpm.sh | sudo bash
$ sudo yum install speedtest

USEFUL COMMANDS
1. To test the Download and Upload speed of your internet connection, run the command without any argument as shown below.
$ speedtest-cli

2. To check the speed result in bytes in place of bits.
$ speedtest-cli --bytes

3. Share your bandwidth speed with your friends or family. You are provided with a link that can be used to download an image.
$ speedtest-cli --share

4. Don’t need any additional information other than Ping, Download, and Upload?
$ speedtest-cli --simple

5. List the speedtest.net server-based upon physical distance. The distance in km is mentioned.
$ speedtest-cli --list
 
6. The last stage generated a huge list of servers sorted on the basis of distance. How to get desired output? Say I only want to see the speedtest.net server located in Mumbai (India).
$ speedtest-cli --list | grep -i Mumbai

7. Test connection speed against a specific server. Use Server Id generated in example 5 and example 6 in above.
$ speedtest-cli --server 23647      ## Here server ID 23647 is used in the example.

8. To check the version number and help of speedtest-cli a tool.
$ speedtest-cli --version
$ speedtest-cli --help

Comment

PREVIOUS NEXT
Code Example
Shell :: Install Nginx, MariaDB and PHP centos rhel 
Shell :: install babel loader 
Shell :: bash: /proc/sys/vm/drop_caches: Permission denied 
Shell :: spring shell inside docker 
Shell :: composer 2 install in windows 10 
Shell :: git reset to a file 
Shell :: Brew was unable to install [php@7.1]. 
Shell :: install free dbeaver ubuntu 16.04 
Shell :: streamlink save file 
Shell :: intsalling pycharm in ubuntu 
Shell :: how to uninstall neovim on linux 
Shell :: device or resource busy 
Shell :: linux list available programs 
Shell :: docker log tail 
Shell :: zsh create alias 
Shell :: uninstall gns3 ubuntu 
Shell :: git rename remote 
Shell :: check start date of process id linux 
Shell :: how to install .deb file ubuntu 
Shell :: how to remove git history for a file 
Shell :: powershell join array 
Shell :: how upgrade notebook with conda command 
Shell :: mongodb restart command ubuntu 
Shell :: download adobe reader linux 
Shell :: django cors install 
Shell :: yum add proxy 
Shell :: linux create public key 
Shell :: cent os mariadb remove complete 
Shell :: ssh end connection after executing script 
Shell :: github gitattributes ignore files for statistics 
ADD CONTENT
Topic
Content
Source link
Name
8+3 =