Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the code to download a file from a URL using wget.
Linux CLI
wget [1] Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using options like -O or -q without specifying the URL.
Trying to download without giving the file address.
✗ Incorrect
The wget command followed by the URL downloads the file from that URL.
2fill in blank
mediumComplete the code to save the downloaded file with a custom name.
Linux CLI
wget [1] http://example.com/file.txt Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using -q which makes wget quiet but does not rename the file.
Forgetting to specify the output file name after the option.
✗ Incorrect
The -O option followed by a filename saves the download with that name.
3fill in blank
hardFix the error in the command to resume a partially downloaded file.
Linux CLI
wget [1] http://example.com/largefile.zip Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using -O which overwrites the file instead of resuming.
Using -q which only quiets output but does not resume.
✗ Incorrect
The -c option tells wget to continue a download from where it left off.
4fill in blank
hardFill both blanks to download a file quietly and save it with a custom name.
Linux CLI
wget [1] [2] http://example.com/data.csv
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using -c instead of -q for quiet mode.
Forgetting to specify the filename after -O.
✗ Incorrect
The -q option makes wget quiet, and -O followed by filename saves with that name.
5fill in blank
hardFill all three blanks to download a file, resume if interrupted, and save with a custom name.
Linux CLI
wget [1] [2] [3] http://example.com/video.mp4
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing up the order of options.
Omitting the filename after -O.
Using --help which only shows help info.
✗ Incorrect
Use -q for quiet, -c to continue downloads, and -O to set the output filename.