views:

12232

answers:

9

There's plenty of websites for it, but they're all Flash, not of much use for servers without graphics mode. Any tool I can use to test up/down bandwidth from Linux command line?

+3  A: 

ab - the apache benchmark tool comes with most installs of apache, can be used to test downstream bandwidth. You could probably use curl for upstream tests

Paul Dixon
That would only test bandwidth to a particular endpoint, not to the entire Internet.
taw
To test the bandwith to the entire Internet you would need to test the bandwith to all endpoints on the entire Internet...
matli
I've not tried downloading the entire Internet. I'd probably need one of them new fangled 1TB drives? Seriously though, it wouldn't be hard to target a few hosts in areas of interest. I've used ab to check raw bandwidth by hitting something on my ISP home page, for example.
Paul Dixon
So, can ab open up multiple concurrent communications channels to every endpoint? That would save me having to remember them all. :-)
paxdiablo
A: 

ftp: file transfer protocol.

Neil D
+2  A: 

I usually just find a large file somewhere (such as a Linux distro ISO) and use ftp or wget to download it.

I don't think FTP gives you a figure until it's finished, but wget gives you a running commentary.

paxdiablo
+1  A: 

If you have access to a unix shell on a server somewhere, you can use SCP to move a file between your computer and the server and vice-versa. It gives you the speed of the file transfer.

PJ Davis
+1  A: 

Pick a large file from a fast source and grab it using wget or curl, A good file to download is Windows XP SP2, large file size and Microsoft's servers allow a very high download speed, unlike some providers who set a per download speed cap.

Andrew Williams
The actual URL is something like http://download.microsoft.com/download/1/6/5/165b076b-aaa9-443d-84f0-73cf11fdcdf8/WindowsXP-KB835935-SP2-ENU.exe, though. How do you find that from the command line?
endolith
Use `wget -O /dev/null` followed by the address to not actually save it.
endolith
http://www.linode.com/speedtest/ has files to download
endolith
+1  A: 

An easy way would be to time wget/curl then divide the filesize by the time.

eg. 654mb linux distro -- 20 mins

32.7 mb/min

558.08 kb/sec

John T
A: 

ping to google.com and find the primitive differnece between TTL value.

A: 

Guys, I think you can use "iftop" package... you can download the rpm on http://checksuite.sourceforge.net/dl/.

cheers

Linox

+3  A: 

It looks like there is a tool available on sourceforge that uses speedtest.net from the terminal.

Terminal speedtest: http://sourceforge.net/projects/tespeed/

billcarroll