Bird
0
0

What will be the output filename when you run wget http://example.com/data.csv in your current directory?

medium📝 Command Output Q13 of 15
Linux CLI - Networking Commands
What will be the output filename when you run wget http://example.com/data.csv in your current directory?
Aindex.html
Bdownloaded_file
Chttp://example.com/data.csv
Ddata.csv
Step-by-Step Solution
Solution:
  1. Step 1: Understand wget default naming

    By default, wget saves the downloaded file with the same name as in the URL's last part, here data.csv.
  2. Step 2: Check other options

    index.html is default for HTML pages without filename. http://example.com/data.csv is invalid as wget does not save with full URL as filename. downloaded_file is arbitrary and not default.
  3. Final Answer:

    data.csv -> Option D
  4. Quick Check:

    Filename = last URL part = data.csv [OK]
Quick Trick: Filename defaults to last part of URL [OK]
Common Mistakes:
  • Expecting wget to rename files automatically
  • Confusing default HTML save name with other files
  • Thinking wget saves full URL as filename

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes