Bird
0
0

Which of the following is the correct syntax to download a file and save it with a custom name using wget?

easy📝 Syntax Q3 of 15
Linux CLI - Networking Commands
Which of the following is the correct syntax to download a file and save it with a custom name using wget?
Awget -O customname.txt http://example.com/file.txt
Bwget -o customname.txt http://example.com/file.txt
Cwget --save-as customname.txt http://example.com/file.txt
Dwget -save customname.txt http://example.com/file.txt
Step-by-Step Solution
Solution:
  1. Step 1: Identify option for output filename

    The -O option specifies the output file name.
  2. Step 2: Check other options

    -o is for log file, not output file; others are invalid.
  3. Final Answer:

    wget -O customname.txt http://example.com/file.txt -> Option A
  4. Quick Check:

    Use -O to set output filename [OK]
Quick Trick: Use -O to save file with a custom name [OK]
Common Mistakes:
  • Using -o instead of -O
  • Trying non-existent options like --save-as
  • Confusing log file option with output file

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes