GNU/Linux Command – WGET

wget — Non-Interactive tool to download files from Web.

Summary:

GNU Wget is a utility for non-interactive download of files from the Web. It supports HTTP, HTTPS, and FTP protocols, as well as retrieval through HTTP proxies with/with-out password.

Examples:$ wget http://server/ -- Download the Main page.  $ wget -t=5 http://server/file.html -- Retry 5 times before fails.  $ wget -c ftp://server.in/file.tgz -- Continue getting a partially downloaded file.  $ wget -r -l2 -P/tmp http://server.com/ -- Download 1st two level of files from the server and save in /tmp.  $ wget -i urls.txt -- Read the URLs from the file and download.  $ wget -p http://server/file.html -- Download all other necessary files.  $ wget --mirror http://www.linux.in/ -- Mirror the remote site in the local space.$ wget -m --wait=6 http://www.linux.in/ -- Same as above. Wait for 6sec between retrivals.$ wget -m --wait=6 --random-wait http://www.linux.in/ -- Same as above. Wait for 0-12sec between retrivals. $ wget --limit-rate=96k http://server/file.iso -- Limit the download speed to 96Kbps.

Read: man wget and info wget (Lot of examples available)

Advertisements
Tagged with: ,
Posted in Uncategorized

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: