Bird
0
0

Identify the error in the command: cp -r source_folder destination_folder -v

medium📝 Debug Q6 of 15
Linux CLI - Linux Basics and Terminal
Identify the error in the command: cp -r source_folder destination_folder -v
AThe -r option is invalid for cp
BOptions must come before arguments; -v should be before source_folder
CThe command is missing a file name
DNo error; command is correct
Step-by-Step Solution
Solution:
  1. Step 1: Check option placement rules

    In Linux commands, options (flags) should come before arguments (file or folder names).
  2. Step 2: Analyze given command

    The -v option is placed after arguments, which is incorrect; it should be before source_folder.
  3. Final Answer:

    Options must come before arguments; -v should be before source_folder -> Option B
  4. Quick Check:

    Options before arguments [OK]
Quick Trick: Always put options before file or folder names [OK]
Common Mistakes:
MISTAKES
  • Placing options after arguments
  • Thinking -r is invalid
  • Missing arguments

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes