Bird
0
0

What will be the output of this command on Raspberry Pi?

medium📝 Predict Output Q13 of 15
Raspberry Pi - Security and Deployment
What will be the output of this command on Raspberry Pi?
rsync -av --delete /home/pi/data/ /backup/data/
ACopies files from /home/pi/data/ to /backup/data/ and deletes files not in source
BCopies files from /backup/data/ to /home/pi/data/ without deleting
CDeletes all files in /home/pi/data/ without copying
DMoves files from /home/pi/data/ to /backup/data/ without copying
Step-by-Step Solution
Solution:
  1. Step 1: Understand rsync options

    -a means archive (copy recursively with attributes), -v means verbose, --delete removes files in destination not in source.
  2. Step 2: Analyze source and destination paths

    Files are copied from /home/pi/data/ to /backup/data/ with deletion of extra files in destination.
  3. Final Answer:

    Copies files from /home/pi/data/ to /backup/data/ and deletes files not in source -> Option A
  4. Quick Check:

    rsync -av --delete = sync with deletion [OK]
Quick Trick: rsync --delete syncs source to destination exactly [OK]
Common Mistakes:
MISTAKES
  • Confusing source and destination order
  • Thinking rsync moves files instead of copying
  • Ignoring --delete option effect

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Raspberry Pi Quizzes