SCP of basic Linux commands

Source: Internet
Author: User

1. Installing the SCP:

Yum-y Install Openssh-clients


2. Common parameters:

SCP (option) (parameter)-P: preserves the last modified time of the file, the last access time and the permission mode;-r: Copy recursively.


3. Application

Copy files from local to remote host: SCP a.zip [email protected]:~ #把文件复制到远程主机root目录下scp A [email protected]:b #把文件复制到远程主机root下, and renamed B Copy directory from local to remote host: scp-r/tmp/[email protected]:~scp-r/tmp/[email protected]:~/xx/copy files from remote host, directory to Local: SCP [email Pro] tected]:/root/b ~ Copy directory from remote host, directory to Local: scp-r [email protected]:/root/xx ~


This article is from the "Hello World" blog, so be sure to keep this source http://nxyboy.blog.51cto.com/10511646/1933688

SCP of basic Linux commands

Related Article

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.