How to test download and upload speed in Linux

If you are searching for an easy way of testing your How to test download and upload speed in Linux you can find here several methods.
One of them uses the pyton script from

wget -O speedtest-cli

chmod +x speedtest-cli


You can test by running speedtest-cli without any parameter and it will choose the best server for you.

In case you would prefer to test with a specific location, then you can list all locations grepping by a location name, then use the 4 digit number to identify the location

./speedtest-cli --list | grep Frankf

./speedtest-cli --server 1746

internet speed test linux command line


If you notice this message “The file has been deprecated in favor of” then use

A very good alternative is to download form an FTP server using wget. It is even better if you redirect the transfer du /dev/null to avoid seeing a false smaller internet speed due to limitation of storage device.



wget -O /dev/null http://server/

One of the reliable servers are