linux run network speed test command line code example

Example 1: internet speed test terminal

sudo apt install speedtest-cli

Example 2: how to speedtest on bash

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

Example 3: internet speed test terminal

$ speedtest
Retrieving speedtest.net configuration...
Testing from CenturyLink (65.128.194.58)...
Retrieving speedtest.net server list...
Selecting best server based on ping...
Hosted by CenturyLink (Cambridge, UK) [20.49 km]: 31.566 ms
Testing download speed................................................................................
Download: 68.62 Mbit/s
Testing upload speed......................................................................................................
Upload: 10.93 Mbit/s