The GNU Wget is a free utility for non-interactive download of files from the Web. It supports HTTP, HTTPS, and FTP protocols, as well as retrieval through HTTP proxies. Recently, I was downloading Ubuntu Linux ISO (618 MB) for testing purpose at my home computer. My Uninterrupted Power Supply (UPS) unit was not working. I started download with the following wget command:
$ wget http://ftp.ussg.iu.edu/linux/ubuntu-releases/5.10/ubuntu-5.10-install-i386.iso
However, due to power supply problem, my computer rebooted at 98% download. Again, after reboot I typed wget at a shell prompt:
$ wget http://ftp.ussg.iu.edu/linux/ubuntu-releases/5.10/ubuntu-5.10-install-i386.iso
However, wget restarted to download ISO image from scratch again. I thought wget should resume partially downloaded ISO file.
wget resume download
After reading man page, I found the -c option. It will continue getting a partially downloaded file. This is useful when you want to finish a download started by a previous instance of wget, or by another program.
$ wget -c http://ftp.ussg.iu.edu/linux/ubuntu-releases/5.10/ubuntu-5.10-install-i386.iso
If there is a file named ubuntu-5.10-install-i386.iso in the current directory, Wget will assume that it is the first portion of the remote file, and will ask the server to continue the retrieval from an offset equal to the length of the local file. Thus, it will result in saving both time and bandwidth :)
See also:
You should follow me on twitter here or grab rss feed to keep track of new changes.
Featured Articles:
- 30 Handy Bash Shell Aliases For Linux / Unix / Mac OS X
- Top 30 Nmap Command Examples For Sys/Network Admins
- 25 PHP Security Best Practices For Sys Admins
- 20 Linux System Monitoring Tools Every SysAdmin Should Know
- 20 Linux Server Hardening Security Tips
- Linux: 20 Iptables Examples For New SysAdmins
- Top 20 OpenSSH Server Best Security Practices
- Top 20 Nginx WebServer Best Security Practices
- 20 Examples: Make Sure Unix / Linux Configuration Files Are Free From Syntax Errors
- 15 Greatest Open Source Terminal Applications Of 2012

- My 10 UNIX Command Line Mistakes
- Top 10 Open Source Web-Based Project Management Software
- Top 5 Email Client For Linux, Mac OS X, and Windows Users
- The Novice Guide To Buying A Linux Laptop













{ 56 comments… read them below or add one }
Use option -c (aka “continue”
wish i’d know then yesterday when i had to restart a download of a 4.7GB dvd iso from the 4 GB point :(
cheers
Thanks a lot. You saved my day!
Man you saved my time. It happened twice first time i started downloaded again but this time i have downloaded already much more and ‘-c’ has saved the time for me.
Thanks
I’ve now switched to wget on windows (gnuwin32 wget) in favour of other download programs like flashget etc – now that i know that wget can resume.
Thanks a lot !! wget is my fav command line tool i never knew abt this option ! this time it happend my internet connection suddenly got disconnected while downloadin an .iso file
-c option really saved my time ! thx again :)
Great article… helped me a lot! thx
great artcle. you saved my. thanks
Thank you. I kept losing my wireless signal today and after 3 attempts at downloading a 719M file (close to 70% on one attempt), I realized that there MUST be a way to resume. I googled “resume” and “wget” and here I am. Good post
but if we had to give username/password for other website does this works? if so how ?
If you have a username/password you can use the –load-cookies option after logging in and exporting your cookies to a cookies.txt file.
You just saved me 20 minutes. :-) Doesn’t that sound funny? We are really impatient people, and we are right!
Thanks!
You have seriously saved me. I needed the last 4KB of a 1.9GB file – and I’m at a site with 7KB/s – 60KB/s download speeds. I kiss your virtual feet on this one.
Nice.
Now, I can continue my stopped downloads.
I like wget because the speed is stable in my network.
thx
Nice tip – thanks
@kashyap
example for ur problem
wget -c --user=theman --password='hasfoundus' http://example.comt/file.pdfnow on third attempt to download ubuntu for netbook prev got to 27% of 947MG this is great find tq for post AJ
does anyone had experience on how to resume a same file from different server url? Seem that wget can’t use a different url to resume download a file (shown file not found, but actually can start a new download)
Thank.
How can i download this program? Were is the download link?
What if you are downloading recursively? Will this work?
Thank you for this post! You helped me a lot!
Thank you for posting this experience, I would have gone crazy without your help tonight. .
Thank you for this post! i love linux…
Awesome tip!! It just saved my a$$.. It works on all files.. even those that were downloaded by other programs.. w00t
thanks alot !@
dude! thank you so much for this post!
saved me a lot of extra time AND bandwidth!
lifesaver!
Jah Bless!
Thanks a lot for the post.It helped a lot!!!
Thanks..
Salamo Alikom
thx man for this info .
ooo..thanks man..
i almost download from the “zero” again..
you save my time..
yes the -c option in wget helps resume downloads. Important article. :)
If you want GUI like Flashget you can use Multiget.
thnx.. man u really saved my 4 hrs.. :)
Thanks, buddy!
This is really useful and I greatly appreciate your effort in doing the digging for us.
Cheers!
Thank you for this wonderful info. I was cursing so hard when my download was cut by a power outage.
Thank you so much! After days of broken attempts to download I finally found you. Thanks again.
Thanks, that’s helpful !
Wow its very useful, it saved my time aswell.
SWEET! for me, this is HEAVEN. I am out in the middle of the forest, and all i get for internet is tethering my cell phone to my computer…. at a whopping 3k-10k speed.
(good thing i have unlimited data plan) It can hell just doing a simple 20-30 mb file. At least now i do not have to start all the way at zero again. Huge thanks!
Awesome! Thanks for the tip. It definitely saved my time :)
Thanks… for just one glimpse with your site and information, it really helps me well.
THanks dude… U made my dayyyyyy
Thanks ! It stop the download in windows, but with with wget -c i can resume it in Linux, even in a ntfs-3g partition.
thanks for this cool tip…. saved my day :)
Thanks a ton Vivek.
I used your info to resume a broken http (browser) download of a 11.04 iso.
The command-line / URL I eventually figured for this was :
Sharing this just in case this contemporary URL info helps some more of us in a similar situation.
Cheers
TechNife, 20-Jun-2011.
Hello, thanks for this post. I have been using wget before. And I would like to ask anyone of you if there is a way for wget to resume a partially downloaded file but this time from a different server url? I am using torrific and it gives a different url after computer shutdown and resuming downloads.
Sweet, this even helped with redownloading a file Safari had truncated for some reason. Sweet!
thanks a lot, -c = -continue
thanks a bunch. u saved my day on resuming a 7GB download at 100K/s
dude you are an angel from linux geeks, you saved my ass, now I don’t have to use windows for downloads any longer! simple but very important!
How I wish I came across this post before I got screwed up by chrome. I have been downloading the image for Ubuntu 12.04 and it so happened that my internet connection went off and chrome threw me the “INTERRUPTED DOWNLOAD” error and worst of all even the downloaded part was deleted… and I was almost getting to the end of it. Though I really thought there MUST be a way of resuming a download however much chrome had let me down due to my internet connection going down. I Googled and here I landed on this great solution. To me this is really great because now this is the method am going to use to do downloads from now onward.
OMG – that is SO AWESOME. Thank you! I’ve been moving around many big files (setting up a bioinformatics server) and this was a life-saver.
Same thing happened to me. Just erased an 80% 4.5GB download from Firefox to restart it from the beginning.
Wish I knew this before.
Its been 3 years that i use wget extensevly because you can resume on any file
even when using another mirror link (well even wrong links for another file)
even at the time i could resume megaupload(before it was shutdown) and mediafire
(which is still working)
I wrote some scripts with wget that can ripe anything from any site
read the man and check the cookies section which enable to download otherwise forbiden content (that was intended to be downloaded using the browser only)
and changing wget signature (lying that its a browser and not a download tool)
Hehe, i know this is an quite old post, and it might seem funny these days with 100MB connection when 700MB just take 40 seconds to download …
Does anyone know a way to make wget behave a bit more agressive if a download stops? I need to something from a really bad connection, it stops and waits long long time until retry. if i cancel and resume the download it goes quite well for another 10 min or so …
Hi thanks a lot i am trying to download skype more than 30 time this helps me a lot. Thanks again………….