Bird
0
0

Why does this command fail to download the file?

medium📝 Debug Q7 of 15
Linux CLI - Networking Commands
Why does this command fail to download the file?
wget -O http://example.com/file.txt
Awget requires --output-file instead of -O
BURL is invalid without www prefix
CMissing output filename after -O option
DThe URL must be enclosed in quotes
Step-by-Step Solution
Solution:
  1. Step 1: Check syntax of -O option

    The -O option requires a filename immediately after it.
  2. Step 2: Identify missing filename

    The command uses -O but no filename is given, so wget errors out.
  3. Final Answer:

    Missing output filename after -O option -> Option C
  4. Quick Check:

    -O must be followed by filename [OK]
Quick Trick: Always provide filename after -O option [OK]
Common Mistakes:
  • Omitting filename after -O
  • Confusing -O with --output-file
  • Thinking quotes are mandatory for URL

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes