File/folder copy between Linux two servers

Source: Internet
Author: User

File/folder copy between Linux two servers

The command required to cross-server copy is SCP.

----------------------Copy Folder----------------------------------------------

Copy the current folder Tempa to the/tmp/wang/folder of the target server 10.127.40.25 server

Scp-r original folder [email protected]:/home (Destination file path)

Where user is the username of the target server, execute the command prompt to enter the password, then enter the password to

----------------------Copy Files----------------------------------------------

Copy the current folder TempA.txt to the/tmp/wang/folder of the destination server IP server

SCP source file [email protected]:/home (Destination file location)

Where USR is the user name of the target server, execute a command prompt to enter a password, then enter the password
Such as:

scp who.py  [email protected]:/root/tools结果:[[email protected] tools]# lltotal 0[[email protected] tools]# pwd/root/tools[[email protected] tools]# lltotal 1-rw-r--r-- 1 root root  197 Feb  

File/folder copy between Linux two servers

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.