Linux command (*): SCP command

Source: Internet
Author: User

Command format: SCP [parameter] [original path] [Target path]

Example 1: Copying files from a distance to a local directory

SCP [email protected]:/opt/soft/nginx-0.5.38.tar.gz/opt/soft/

Example 2: Replicating a directory from a distance to a local

Scp-r [email protected]:/opt/soft/opt/soft/

Example 3: Uploading a local file to a remote machine specified directory

scp/opt/soft/nginx-0.5.38.tar.gz [email protected]:/opt/soft/scptest

Example 4: Uploading a local directory to a remote machine-specified directory

Scp-r/opt/soft [email protected]:/opt/soft/scptest

Linux command (*): SCP command

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.