Bird
0
0

You want to synchronize a large directory from local to remote but only transfer changed files and keep permissions intact. Which command should you use?

hard📝 Application Q8 of 15
Linux CLI - Networking Commands
You want to synchronize a large directory from local to remote but only transfer changed files and keep permissions intact. Which command should you use?
Ascp /local/dir/* user@remote:/remote/dir/
Bscp -r /local/dir user@remote:/remote/dir/
Crsync -avz /local/dir/ user@remote:/remote/dir/
Drsync /local/dir user@remote:/remote/dir
Step-by-Step Solution
Solution:
  1. Step 1: Identify command for syncing changed files with permissions

    rsync with -a preserves permissions and copies only changed files.
  2. Step 2: Analyze options

    rsync -avz /local/dir/ user@remote:/remote/dir/ uses -avz for archive, verbose, compression; scp copies everything each time.
  3. Final Answer:

    rsync -avz /local/dir/ user@remote:/remote/dir/ -> Option C
  4. Quick Check:

    Sync changed files with permissions = rsync -a [OK]
Quick Trick: Use rsync -a to preserve permissions and sync changes [OK]
Common Mistakes:
  • Using scp for syncing changed files
  • Omitting -a option in rsync
  • Not using trailing slash in source

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes