Bird
0
0

How can you use curl to download multiple files listed in a text file urls.txt?

hard📝 Application Q9 of 15
Linux CLI - Networking Commands
How can you use curl to download multiple files listed in a text file urls.txt?
Acurl -b urls.txt
Bcurl -O cat urls.txt
Ccurl --url-file urls.txt
Dcurl -K urls.txt
Step-by-Step Solution
Solution:
  1. Step 1: Understand curl's config file option

    The -K option lets curl read commands or URLs from a file.
  2. Step 2: Check other options

    -O downloads single files, --url-file and -b are invalid for this purpose.
  3. Final Answer:

    curl -K urls.txt -> Option D
  4. Quick Check:

    Use -K to read URLs from file [OK]
Quick Trick: Use -K to read multiple URLs from a file [OK]
Common Mistakes:
  • Using shell expansion with -O
  • Assuming --url-file exists
  • Confusing -b (cookies) with URL input

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes