speedtest linux code example

Example 1: test internet speed terminal linux

#Install it
sudo apt install speedtest-cli
#To run net speed 
speedtest-cli
#result as follows:
Testing download speed................................................................................
Download: 9.54 Mbit/s
Testing upload speed......................................................................................................
Upload: 14.61 Mbit/s

Example 2: linux speed test

curl -s https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py | python -

Example 3: tor browser shortcut linux

-- move in tor directory and execute this command --
./start-tor-browser.desktop --register-app

Example 4: speedtest.net cli

sudo apt-get install gnupg1 apt-transport-https dirmngrexport INSTALL_KEY=379CE192D401AB61# Ubuntu versions supported: xenial, bionic# Debian versions supported: jessie, stretch, busterexport DEB_DISTRO=$(lsb_release -sc)sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys $INSTALL_KEYecho "deb https://ookla.bintray.com/debian ${DEB_DISTRO} main" | sudo tee  /etc/apt/sources.list.d/speedtest.listsudo apt-get update# Other non-official binaries will conflict with Speedtest CLI# Example how to remove using apt-get# sudo apt-get remove speedtest-clisudo apt-get install speedtest

Example 5: speedtest cli

sudo apt-get install gnupg1 apt-transport-https dirmngr
export INSTALL_KEY=379CE192D401AB61
export DEB_DISTRO=$(lsb_release -sc)
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys $INSTALL_KEY
echo "deb https://ookla.bintray.com/debian ${DEB_DISTRO} main" | sudo tee  /etc/apt/sources.list.d/speedtest.list
sudo apt-get update
sudo apt-get install speedtest