What if your favorite recipe is located on the internet?
For retrieving files using internet protocols you use the command wget
followed by the file URL like this: wget http://example.com/folder/file.zip>
.
The above command will download the file in the current directory. The filename will remain the same.
If you want to change the name of the file you can use wget -O
(capital O) followed by a new name like this: wget -O NewName.zip http://example.com/folder/file.zip
In case the download was interrupted, wget can resume downloading a partially downloaded file via the -c
option (continue – lower case c). It can be very helpful when downloading large files.wget -c http://example.com/folder/file.zip
Practice a bit more on your own computer:
Open Replit, go to folder Recipies, create a folder called Shellfish and download the mussels recipe (see link in Quiz) in the folder Shellfish.