Bird
0
0

What is the primary difference between scp and rsync when transferring files?

easy📝 Conceptual Q11 of 15
Linux CLI - Networking Commands
What is the primary difference between scp and rsync when transferring files?
A<code>scp</code> requires no authentication, <code>rsync</code> always does.
B<code>scp</code> is used only for local copies, <code>rsync</code> only for remote.
C<code>scp</code> compresses files automatically, <code>rsync</code> does not.
D<code>scp</code> copies files directly, while <code>rsync</code> syncs only changed parts.
Step-by-Step Solution
Solution:
  1. Step 1: Understand scp behavior

    scp copies entire files securely from one machine to another without checking differences.
  2. Step 2: Understand rsync behavior

    rsync compares source and destination and transfers only changed parts, making it efficient for syncing.
  3. Final Answer:

    scp copies files directly, while rsync syncs only changed parts. -> Option D
  4. Quick Check:

    Difference in transfer method = C [OK]
Quick Trick: Remember: rsync syncs changes, scp copies whole files [OK]
Common Mistakes:
  • Thinking scp syncs files like rsync
  • Believing scp works only locally
  • Assuming rsync doesn't need authentication

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes