Bird
0
0

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

easy📝 Syntax Q12 of 15
Linux CLI - Networking Commands
Which of the following is the correct syntax to copy a file named report.txt from your local machine to a remote server using scp?
Ascp report.txt user@remote:/home/user/
Bscp user@remote:/home/user/ report.txt
Cscp -r report.txt user@remote:/home/user/
Dscp /home/user/report.txt user@remote:
Step-by-Step Solution
Solution:
  1. Step 1: Identify source and destination in scp

    Syntax is scp source destination. Here, source is local file report.txt.
  2. Step 2: Check destination format

    Destination must be remote user and path: user@remote:/home/user/. scp report.txt user@remote:/home/user/ matches this.
  3. Final Answer:

    scp report.txt user@remote:/home/user/ -> Option A
  4. Quick Check:

    Local to remote copy syntax = A [OK]
Quick Trick: Remember: scp source destination, remote uses user@host:path [OK]
Common Mistakes:
  • Reversing source and destination
  • Using -r for single file copy
  • Omitting user@host in remote path

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes