How to install SpeedTest CLI on Ubuntu 22.04

Assuming CURL is already installed on your system.

  1. Navigate to your home folder
cd ~
  1. Download the script and run it
curl -s https://packagecloud.io/install/repositories/ookla/speedtest-cli/script.deb.sh | sudo bash
  1. Install the software
sudo apt-get install speedtest
  1. Try it out!
speedtest

You may have to answer YES to the questions it asks you and all that.

Sources: