Copy file Method

Source: Internet
Author: User
Tags file copy scp command

There are three common methods to copy files between different Linux systems,

The first is FTP, that is, one of the Linux installation FTP server, so that another client using FTPProgramTo copy files.

1) enter the directory of the uploaded file (source)
2) Target sftp ip Address
3) target path of the put source file
CD/
SFTP 192.168.2.25
Ftp> put mobile-core/root/

The second method is to use the samba service, which is similar to the Windows file copy method, which is simple and convenient,

The third is to use the SCP command to copy files.
SCP is a file copy with security and is used for SSH logon. It is easy to operate. For example, you need to copy the current file to another remote host,

 

You can run the following command.
SCP/home/1.gif root@172.19.2.75:/home/root

Then you will be prompted to enter the login password of the root user of the other 172.19.2.75 host, and then start CP and ungzip.
If you want to copy files from the remote host to the current system, it is also very easy.
Root@172.19.2.75 SCP:/home/abc.gif
The format for copying folders is SCP-r root@192.168.1.1:/home // local directory

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.