Wget is a powerful command-line utility in Linux and other Unix-like operating systems, used to download files from the internet. There are situations where a download might get interrupted due to network glitches, system crashes, or accidental terminations. Starting the download again from scratch can be frustrating, especially if it was a large file.
Fortunately, Wget offers a feature to resume interrupted downloads seamlessly, saving both time and bandwidth. With the right command options, it can pick up from where it left off and continue downloading the file.
Whether the interruption was due to an accidental system shutdown, a dropped network connection, or any other reason, you can rely on Wget to retrieve your download without starting over.
Keep in mind that resuming downloads with Wget depends on the server's support for this functionality. Not all servers support byte ranges, which is required for resuming downloads.
$ wget -c https://example.com/large-file.zip
The -c or –continue option tells Wget to continue downloading from the point it was interrupted. It checks the size of the partially downloaded file and downloads the remaining bytes.
Tip: To ensure smoother downloads, always opt for a stable internet connection. Also, consider using screen sessions in terminal, so even if the terminal gets disconnected, the process continues in the background. See more about using the screen command using-screen-command.
Comment anonymously. Login not required.