The easiest way is to use speedtest-cli tool. 1. Install the tool: sudo apt install speedtest-cli 2. Run command: speedtest-cli That's it. Additionally, you can save test results into a text file: 3. Save results to file: speedtest-cli > ~/my-internet-speed.txt