Bird
0
0

You want to copy all files ending with .txt from docs to backup directory, showing each file copied. Which command is correct?

hard📝 Application Q8 of 15
Linux CLI - Linux Basics and Terminal
You want to copy all files ending with .txt from docs to backup directory, showing each file copied. Which command is correct?
Acp backup/ docs/*.txt -v
Bcp docs/*.txt -v backup/
Ccp -v docs/*.txt backup/
Dcp -v backup/ docs/*.txt
Step-by-Step Solution
Solution:
  1. Step 1: Understand cp command with options

    The -v option shows files being copied. It must come before arguments.
  2. Step 2: Check argument order

    Source files docs/*.txt come before destination backup/. Option -v is before arguments.
  3. Final Answer:

    cp -v docs/*.txt backup/ -> Option C
  4. Quick Check:

    Options before source and destination [OK]
Quick Trick: Put options before source and destination paths [OK]
Common Mistakes:
MISTAKES
  • Placing options after arguments
  • Swapping source and destination
  • Missing wildcard for files

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes