How to continue partially downloaded files using wget

Wget is one of the best command line tools ever built. We have already discussed a few of wget's features, but I guess I missed one very important one - "to continue download from a partially downloaded file". All you have to do is use the -c or --continue option in your previous wget command  and you are good to go. Here is an example.

Suppose this is what you executed the first time.

[shredder12]$ wget http://foo.bar/file.tgz

For some reason, you stopped the download in middle and now you want to continue the download of that partially downloaded file. Just add the --continue or -c option in the same command.

[shredder12]$ wget -c http://foo.bar/file.tgz

Please note that, wget doesn't keep a log of our downloads. It comes to know about the partially downloaded files by finding them out in your download directory. So, make sure that you have the that file in the current directory(or any other download location) before continuing with the download.

1 Comment

nother_one (not verified)
January 24th, 2011 09:59 pm
axel does this automatically

Post new comment

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <img> <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <blockquote> <h1> <h2> <h3> <h4> <h5> <h6> <p> <br>
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • Image links with 'rel="lightbox"' in the <a> tag will appear in a Lightbox when clicked on.

More information about formatting options

Type the characters you see in this picture. (verify using audio)
Type the characters you see in the picture above; if you can't read them, submit the form and a new image will be generated. Not case sensitive.