How to check server network speed from Linux command line?

Linux Server Management Tips and Tricks
Post Reply
arnlweb
Site Admin
Posts: 95
Joined: Wed Jun 22, 2016 1:28 pm
Location: India
Contact:

How to check server network speed from Linux command line?

Post by arnlweb » Mon Sep 18, 2017 10:40 am

I use speedtest-cli tool for this, check this on GitHub https://github.com/sivel/speedtest-cli

This is the command to use it.

Code: Select all

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

Code: Select all

[email protected]:~# curl -s https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py | python -
Retrieving speedtest.net configuration...
Testing from ONLINE SAS (xxx.xx.xxx.xxx)...
Retrieving speedtest.net server list...
Selecting best server based on ping...
Hosted by Interoute VDC (Paris) [1.88 km]: 15.77 ms
Testing download speed................................................................................
Download: 160.74 Mbit/s
Testing upload speed................................................................................................
Upload: 154.41 Mbit/s
Install speedtest-cli (for ubuntu 16.04 (xenial) and later version)

Code: Select all

sudo apt install speedtest-cli

Post Reply