Often we use Speedtest.net to test in Windows environments, but how to use speedtest for testing under Linux.
I use a centos6.7 environment that contains the Python environment so you can test it directly. If you don't have Python, install Python first.
Download script
Wget-o speedtest-cli https://raw.github.com/sivel/speedtest-cli/master/speedtest_cli.py
chmod +x SPEEDTEST-CLI
Using tutorials
The default run Test command is
./speedtest-cli
Test and share
./SPEEDTEST-CLI--share
Select the specified node to test
./SPEEDTEST-CLI--server Node ID
Select the specified node to test and share
./SPEEDTEST-CLI--server Node ID--share
There are three more commonly used commands.
Common commands are
Optional arguments:
-H,--help show this Help and exit
--bytes Display values in bytes instead of bits. does not affect
The image generated by--share
--share Generate and provide a URL to the Speedtest.net share
Results image
--simple suppress verbose output, only show basic information
--list Display A list of speedtest.net servers sorted by
Distance
--server server Specify a server ID to test against
--mini Mini URL of the Speedtest Mini server
--source Source source IP address to bind to
--timeout Timeout HTTP timeout in seconds. Default 10
--secure use HTTPS instead the HTTP when communicating with
Speedtest.net operated servers
--version Show the version number and exit