What command would you use to copy a local file to a remote server using SCP?

Explore the Linux Fundamentals Test. Revise with flashcards and multiple choice questions, each with hints and explanations. Prepare thoroughly for your Linux exam!

The appropriate command to copy a local file to a remote server using SCP is constructed as follows: "scp filename user@remote:/directory."

In this command:

  • "scp" stands for Secure Copy Protocol, which is specifically designed for securely transferring files between hosts over a network.

  • "filename" represents the local file that you intend to copy.

  • "user" is the username that you will use to authenticate on the remote server.

  • "remote" refers to the hostname or IP address of the remote server.

  • "/directory" specifies the destination directory on the remote server where the file will be copied.

This command ensures that the file transfer is encrypted and secure, leveraging SSH as the underlying protocol.

The other choices listed do not represent valid commands for this operation. "Copy," "mv," and "send" are not recognized as standard Linux commands designed for transferring files over a network in this context. Thus, the use of "scp" is distinct and essential for secure file copying, making it the correct answer.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy