How to Perform speed test command line linux - Quick and Accurate Methods
Introduction
In the world of network administration and troubleshooting, knowing how to test your internet speed efficiently is a must. For Linux users, there are powerful command-line tools available to perform speed tests without the need for graphical interfaces or third-party applications. This article will guide you through several methods to measure download, upload, and ping speeds directly from the terminal, making it easier to diagnose connectivity issues and optimize your network performance.
In this tutorial, How to run a Speedtest from your command line. The requirement Nodejs version > 8+.
speed test command line
Install speed test command line
[vagrant@localhost ~]$ wget https://nodejs.org/dist/v14.15.4/node-v14.15.4.tar.gz
[vagrant@localhost ~]$ tar xvf node-v14.15.4.tar.gz
[vagrant@localhost ~]$ cd node-v14.15.4/
[vagrant@localhost node-v14.15.4]$ sudo ./configure
[vagrant@localhost node-v14.15.4]$ sudo make
[vagrant@localhost node-v14.15.4]$ sudo make install
Use NPM install speed test
[vagrant@localhost ~]$ sudo npm install --global speed-test
The result, Install speed-test
[vagrant@localhost node-v14.15.4]$ sudo npm install --global speed-test
/usr/local/bin/speed-test -> /usr/local/lib/node_modules/speed-test/cli.js
+ speed-test@2.1.0
updated 2 packages in 10.4s
[vagrant@localhost node-v14.15.4]$
Usage speed-test
[vagrant@localhost node-v14.15.4]$ speed-test --help
Test your internet connection speed and ping using speedtest.net from the CLI
Usage
$ speed-test
Options
--json -j Output the result as JSON
--bytes -b Output the result in megabytes per second (MBps)
--verbose -v Output more detailed information
Then run command speedtest
[vagrant@localhost node-v14.15.4]$ speed-test
Ping 58 ms
Download 46 Mbps
Upload 42 Mbps
[vagrant@localhost node-v14.15.4]$
Conclusion
Performing speed tests through the command line on Linux is a quick and effective way to monitor and troubleshoot network performance. Whether you're using speedtest-cli
, fast-cli
, or other tools, these methods provide precise results to help you better understand your connection. By incorporating these tools into your routine, you can ensure that your network is functioning optimally and take action whenever issues arise. I hope will this your helpful. Thank you for reading the Huuphan.com page!
Comments
Post a Comment