Bird
0
0

Which of the following is the correct syntax to copy a file named data.txt from local to remote using scp?

easy📝 Syntax Q3 of 15
Linux CLI - Networking Commands
Which of the following is the correct syntax to copy a file named data.txt from local to remote using scp?
Ascp user@remote:/path/ data.txt
Bscp user@remote:data.txt /path/
Cscp /path/data.txt user@remote:
Dscp data.txt user@remote:/path/
Step-by-Step Solution
Solution:
  1. Step 1: Understand scp syntax for local to remote

    scp source_file user@remote:destination_path copies local file to remote.
  2. Step 2: Match syntax with options

    scp data.txt user@remote:/path/ matches local file to remote path syntax correctly.
  3. Final Answer:

    scp data.txt user@remote:/path/ -> Option D
  4. Quick Check:

    Local to remote scp = scp source user@remote:path [OK]
Quick Trick: scp localfile user@host:/remote/path [OK]
Common Mistakes:
  • Reversing source and destination
  • Omitting user@remote
  • Using wrong path order

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes