speedtest linux cli code example
Example 1: test internet speed terminal linux
sudo apt install speedtest-cli
speedtest-cli
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: linux terminal speed test
sudo apt-get install gnupg1 apt-transport-https dirmngr
export INSTALL_KEY=379CE192D401AB61
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys $INSTALL_KEY
echo "deb https://ookla.bintray.com/debian generic main" | sudo tee /etc/apt/sources.list.d/speedtest.list
sudo apt-get update
sudo apt-get install speedtest
speedtest