Bird
0
0

Which of the following is the correct syntax to download a file from http://example.com/file.txt using wget?

easy📝 Syntax Q12 of 15
Linux CLI - Networking Commands
Which of the following is the correct syntax to download a file from http://example.com/file.txt using wget?
Awget -d http://example.com/file.txt
Bwget http://example.com/file.txt
Cwget download http://example.com/file.txt
Dwget -save http://example.com/file.txt
Step-by-Step Solution
Solution:
  1. Step 1: Recall basic wget syntax

    The basic command to download a file is simply wget URL without extra flags.
  2. Step 2: Analyze each option

    wget -d http://example.com/file.txt uses an invalid flag -d. wget download http://example.com/file.txt adds an unnecessary word download. wget -save http://example.com/file.txt uses a non-existent flag -save. Only wget http://example.com/file.txt is correct.
  3. Final Answer:

    wget http://example.com/file.txt -> Option B
  4. Quick Check:

    Basic wget syntax = wget URL [OK]
Quick Trick: Use just 'wget' plus URL to download [OK]
Common Mistakes:
  • Adding extra words or flags not supported by wget
  • Using incorrect or made-up options
  • Confusing wget syntax with other commands

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes