Wget resume broken download
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) was down. I started download with wget command:
$ wget http://ftp.ussg.iu.edu/linux/ubuntu-releases/5.10/ubuntu-5.10-install-i386.iso
Due to power supply problem, my computer rebooted at 98% download. Again, after reboot I typed wget:
$ wget http://ftp.ussg.iu.edu/linux/ubuntu-releases/5.10/ubuntu-5.10-install-i386.iso
However, wget restarted to download complete ISO image again. I thought wget should resume partially downloaded ISO file.
Command to resume file download with wget
After reading man page, I found -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
See also:
You may also be interested in other helpful articles:
- Quick Tip: Run wget in background for an unattended download of files
- Linux wget your ultimate command line downloader
- Lighttpd block wget useragent for specific urls
- Fedora Core Linux 6 Test 2 available for download
- Download and install an RPM file on fly from ftp or http server
Discussion on This Article:
Leave a Reply
We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Thank you very much for stopping by our site!



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
[...] Wget resume broken download Posted in Tutorial. [...]
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