Resume Downloads With Wget

wget is a common tool used to download files from the command line. So what happens if you get disconnected in between a download?? Restart the download from beginning?

No, not really. Its easy to resume a download, provided the source server supports download resume. All you gotta do is use the -c option of wget as follows:

wget -c <url>

For example:

wget -c www.examplesite.com/textfile.txt -O example.txt

the -O lets you set a name for the downloaded file