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