How to use wget to resume a partially downloaded file?
Published on Aug. 22, 2023, 12:17 p.m.
To use wget
to resume a partially downloaded file, you can use the -c
or --continue
option with the URL of the file. This option enables wget
to resume a partially downloaded file instead of starting from the beginning.
Here’s the syntax:
wget -c URL
Replace “URL” with the URL of the partially downloaded file that you want to resume.
For example, if you have a file named “example-file.zip” that you started downloading but the download was interrupted, and the partially downloaded file is available at “http://example.com/downloads/example-file.zip”, you can resume the download using wget
with the following command:
wget -c http://example.com/downloads/example-file.zip
This will resume the download of the partially downloaded file from where it left off. If the download is successfully completed, you will have the complete file in your current directory.
Note that the -c
option only works for downloads that support resuming partially downloaded files, so it may not be available for all files or URLs.