This Knowledgebase will cover how to test a VPS/Server's Upload and Download Speed.
Log into your server via SSH and Run the following commands based on the Operating System you are using:
================
For Debian and Ubuntu OS
================
apt-get update
apt-get upgrade
apt-get install python -y
wget https://raw.github.com/sivel/speedtest-cli/master/speedtest.py
chmod a+rx speedtest.py
mv speedtest.py /usr/local/bin/speedtest
chown root:root /usr/local/bin/speedtest
speedtest
=======
For CentOS
=======
yum update
yum install python -y
wget https://raw.github.com/sivel/speedtest-cli/master/speedtest.py
chmod a+rx speedtest.py
mv speedtest.py /usr/local/bin/speedtest
chown root:root /usr/local/bin/speedtest
speedtest
=======
You can also generate a SpeedTest.net’s badge using the following command:
speedtest --share
After open the share result's url on your browser.