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 speedtest.net

wget -O speedtest-cli https://raw.github.com/sivel/speedtest-cli/master/speedtest_cli.py

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 speedtest_cli.py has been deprecated in favor of speedtest.py” then use speedtest.py

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.

 

Example:

wget -O /dev/null http://server/10GB.zip

One of the reliable servers are speedtest.tele2.net