CoolComputing Logo
Coupons/Deals  ·  New Promo Codes/Coupons  · May 22, 2018

Use wget to download files

Posted on Thursday, March 29, 2001 @ 10:37:09 PM CST by David Yee [] [read 2643 times]

 
Tips: Linux/Unix world
Use "wget" to download just about any file on the console. For example to download a web page you can type:

wget http://www.fasdfadfaas.com/index.html

The tool also works for anonymous ftp- e.g.

wget ftp://ftp.redhat.com/pub/redhat/linux/beta/wolverine/en/iso/MD5SUM

Now if you want to add a time out setting, there are two options- dns-timeout and connect-timeout. The former is the maximum # of seconds before wget stops trying to resolve url/address you are trying to download, whereas the latter is a total length of time "timer" of sorts that will abort whenever it exceeds time. An example:

wget --dns-timeout=8 --connect-timeout=10 -t2 http://www.coolcomputing.com/

BTW the "-t2" tells wget to retry in case of timeout/error, for a total of 2 times.

If you are trying to download a secure HTTPS page, use the --no-check-certificate option to avoid errors. For instance:

wget --no-check-certificate https://www.google.com/

Here is a video tutorial + examples of wget usage under Linux:





Please rate this article or post a brief review of Use wget to download files or comment on benchmark/performance, features, availability, price or anything else regarding Use wget to download files. Thanks!

Use Wget To Download Files Rating: 1.9/5 (7 votes cast)

Your Name:
I have read and agreed to the Review Posting Agreement.
Review Title:
Comment/Review: