Bird
0
0

You run this command to copy a directory:

medium📝 Debug Q14 of 15
Linux CLI - Networking Commands
You run this command to copy a directory:
scp -r myfolder user@remote:/home/user/
But you get an error: scp: command not found. What is the most likely cause?
AYou forgot to add the <code>-v</code> verbose flag.
BThe <code>scp</code> command is not installed on the local machine.
CThe remote path is incorrect and missing a trailing slash.
DYou need to use <code>rsync</code> instead of <code>scp</code> for directories.
Step-by-Step Solution
Solution:
  1. Step 1: Analyze the error message

    scp: command not found means the local system cannot find the scp program.
  2. Step 2: Check other options

    Verbose flag or remote path errors cause different errors; scp supports directories with -r.
  3. Final Answer:

    The scp command is not installed on the local machine. -> Option B
  4. Quick Check:

    Command not found means missing program = A [OK]
Quick Trick: Command not found means program missing locally [OK]
Common Mistakes:
  • Assuming -v fixes command not found
  • Thinking remote path syntax causes this error
  • Believing scp can't copy directories

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes