Several common ways of file sharing under Linux

Source: Internet
Author: User
Tags rsync

1. Python mode, make a simple server. The default is to turn on port 8000.

> Python-m simplehttpserver

After executing the command, enter the machine ip+8000 port on the browser

2. SCP approach

SCP file1 [Email protected]:/xx/file2

Like transferring the file1 to the/home/work/on the 10.0.1.1 machine.

> SCP file1 [email protected]:/home/work/xxx.conf

If you pass a folder, it is recommended to make a tar packet before transferring it.

General intranet transfer files are very fast, in order not to affect the bandwidth of each other's machines, depending on the situation, it is best to have a speed limit. -l parameters, such as Scp-l file1 file2, is the speed limit 800kbit/s, almost 100kb/s.

3. Rsync mode

This approach is very similar to the SCP usage.

rsync file1 [Email protected]:/xx/file2

If you are transferring a directory, you need to add a-a parameter. If the transfer directory process is worried about the delivery of unexpected problems, you can run one time, that is, simulate a transmission, not really pass through. -N is the analog,-V is to see details. This execution

Rsync-nva dir [Email protected]:/xx/

4. How Samba is shared

I've written this way before: http://www.cnblogs.com/firstForEver/p/5633708.html

Several common ways of file sharing under Linux

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.