Instead of going to sites like speedtest.net, or others, I want to check my current internet speed from the terminal on 11.10. How can I do it?
Well I use
To use it just point to a file in internet that is relatively bigger so that you can get a better estimate of it.
Of course there are several recommendations:
This is an alternative to
To use it is simple:
In the image, the -x 4 is how many parallel connections we wish to use. The CN parameter in the next line shows how many active parallel connections were permitted to download from that site. In this case CN is 4. But if we tried to have more connections we would get something like this:
We set 8 parallel connections but the site only allowed a maximum of 5 as shown by CN:5. This could be solved by the -j option which tells aria2c the maximum concurrent connections we want (Which by default is 5) but if the server has limited this, -j will not work.
I recommend the speedtest-cli tool for this. I created a blog post (Measure Internet Connection Speed from the Linux Command Line) that goes into detail of downloading, installing and usage of it.
The short version is this:
try this on command line
try this too
got it from above link
If you can't be bothered to install iperf , you could precede any command that shifts a known amount of data with the
iperf is simple and easy to use.
It requires a client and server.
(on the server)
(on the client)
Since speedtest-cli is a python application, it is much easier to install by doing:
Depending on how Python is installed on your system, you may need to be root to do the above.
Run several instances of wget with timeout command on large files:
And then write a script to calculate the total bytes downloaded and divide 5 seconds you will get a bytes/sec figure. Should be quite accurate and you can add more instances to max your bandwidth.
I have yet to test the full script but the single line command "timeout 5 wget url" works, and you get a partially downloaded file as a result (if 5 secs is not enough to complete the download).
Install the python script/broad band test
after type speedtest in terminal, enjoy the show.
Eng Naveen G