Assuming CURL is already installed on your system.
1. Navigate to your home folder
cd ~
2. Download the script and run it
curl -s https://packagecloud.io/install/repositories/ookla/speedtest-cli/script.deb.sh | sudo bash
3. Install the software
sudo apt-get install speedtest
4. Try it out!
speedtest
You