wget is a useful tools for downloading file over internet. I sometime use it to download linux image distro at kambing.ui.edu. It has the ability to continue the download eventhough we had stop it. It has many option also. Firstly I am gonna teach you how to install wget in windows. Because I think, this tools is also great for other users who use windows. Download the wget installer for windows in here

after you had finish installing the tools, then now it’s time to use it.

for windows, open you command prompt and for linux then open your konsole. The syntax for wget are the same for both windows and linux.

for this example though I use windows because I happen to use windows at this time. :-)

C:\>wget -drc ftp://kambing.ui.edu/pub/debian/4.0_r0/i386/iso-dvd/debian-40r0-i3
86-DVD-1.iso
DEBUG output created by Wget 1.5.3.1 on Windows.

parseurl (“ftp://kambing.ui.edu/pub/debian/4.0_r0/i386/iso-dvd/debian-40r0-i386-
DVD-1.iso”) -> host kambing.ui.edu -> opath pub/debian/4.0_r0/i386/iso-dvd/debia
n-40r0-i386-DVD-1.iso -> dir pub/debian/4.0_r0/i386/iso-dvd -> file debian-40r0-
i386-DVD-1.iso -> ndir pub/debian/4.0_r0/i386/iso-dvd
Checking for kambing.ui.edu.
This is the first time I hear about host kambing.ui.edu by that name.
Using `kambing.ui.edu/pub/debian/4.0_r0/i386/iso-dvd/.listing’ as listing tmp fi
le.
–19:56:30– ftp://kambing.ui.edu:21/pub/debian/4.0_r0/i386/iso-dvd/debian-40r0
-i386-DVD-1.iso
=> `kambing.ui.edu/pub/debian/4.0_r0/i386/iso-dvd/.listing’
Connecting to kambing.ui.edu:21… Created fd 1856.
connected!
Logging in as anonymous … 220 (vsFTPd 2.0.4)

–> USER anonymous

331 Please specify the password.

–> PASS Yacob@

230 Login successful.
Logged in!
==> TYPE I …
–> TYPE I

200 Switching to Binary mode.
done. ==> CWD pub/debian/4.0_r0/i386/iso-dvd …
–> CWD pub/debian/4.0_r0/i386/iso-dvd

250 Directory successfully changed.
done.
==> PORT … Master socket fd 1844 bound.

–> PORT 192,168,1,177,14,129

200 PORT command successful. Consider using PASV.
done. ==> LIST …
–> LIST

150 Here comes the directory listing.
done.
Created socket fd 1820.

0K ->

Closing fd 1820
Closing fd 1844
226 Directory send OK.
19:56:46 (517.58 KB/s) – `kambing.ui.edu/pub/debian/4.0_r0/i386/iso-dvd/.listing
‘ saved [530]

-rw-r–r– 1 1500 100 183 Jun 16 2007 MD5SUMS
PLAINFILE; perms 644; month: Jun; day: 16; year: 2007 (no tm);
-rw-r–r– 1 1500 100 189 Jun 16 2007 MD5SUMS.sign
PLAINFILE; perms 644; month: Jun; day: 16; year: 2007 (no tm);
-rw-r–r– 1 1500 100 207 Jun 16 2007 SHA1SUMS
PLAINFILE; perms 644; month: Jun; day: 16; year: 2007 (no tm);
-rw-r–r– 1 1500 100 189 Jun 16 2007 SHA1SUMS.sign
PLAINFILE; perms 644; month: Jun; day: 16; year: 2007 (no tm);
-rw-r–r– 1 1500 100 4698417152 Jun 12 2007 debian-40r0-i386-DVD-1
.iso
PLAINFILE; perms 644; month: Jun; day: 12; year: 2007 (no tm);
-rw-r–r– 1 1500 100 4681476096 Jun 13 2007 debian-40r0-i386-DVD-2
.iso
PLAINFILE; perms 644; month: Jun; day: 13; year: 2007 (no tm);
-rw-r–r– 1 1500 100 4571021312 Jun 13 2007 debian-40r0-i386-DVD-3
.iso
PLAINFILE; perms 644; month: Jun; day: 13; year: 2007 (no tm);
Removed `kambing.ui.edu/pub/debian/4.0_r0/i386/iso-dvd/.listing’.
Checking for kambing.ui.edu.
kambing.ui.edu was already used, by that name.
–19:56:46– ftp://kambing.ui.edu:21/pub/debian/4.0_r0/i386/iso-dvd/debian-40r0
-i386-DVD-1.iso
=> `kambing.ui.edu/pub/debian/4.0_r0/i386/iso-dvd/debian-40r0-i386-DV
D-1.iso’
==> CWD not required.
==> PORT … Master socket fd 1804 bound.

–> PORT 192,168,1,177,14,131

200 PORT command successful. Consider using PASV.
done. ==> REST 5891040 …
–> REST 5891040

350 Restart position accepted (5891040).
done.
==> RETR debian-40r0-i386-DVD-1.iso …
–> RETR debian-40r0-i386-DVD-1.iso

150 Opening BINARY mode data connection for debian-40r0-i386-DVD-1.iso (46984171
52 bytes).
done.
Created socket fd 1840.
Length: 403,449,856 [397,558,816 to go]

[ skipping 5750K ]
5750K -> ,,…….. ………. ………. …..

for more details you can use

#man wget

or refer to this site

happy downloading !!!

3 Responses to “wget : tools for downloading”

  1. GREAT BLOG by a GREAT person who knows many thing bout linux.
    Keep Spirit on LINUX^^

    Don’t forget to visit : http://rubbertime.blogspot.com

  2. jack said

    nice reading your article jack, keep up the good work. :-P

  3. It’s the first time I comment here and I should say you give genuine, and quality information for other bloggers! Good job.
    p.s. You have an awesome template . Where have you got it from?

Leave a Reply