Several ways of file sharing between Linux and Linux and Windows

Source: Internet
Author: User
Tags scp command

In peacetime development process often involves between Linux and Linux, between Linux and Windows file transfer or sharing situation (preferably shut down the firewall), now according to the usual situation summarized as follows:
One, Linux and Windows file sharing
1. When Linux is a virtual machine
For example, installed under VMware, you can directly use its virtual tools VMware tools to set up a shared directory between Windows and Linux (depending on the Linux reference online profile), because the shared directory and Linux system are not in the same partition. Used to compile the system related source code should not be placed in the partition.
2. Configure the Samba server
Configure the Samba server in Linux so that you can access the Linux shared directory by entering the \\samba server IP in the Windows Runtime window, and you can set read and write permissions as appropriate. Provides an article to configure a Samba server under FEDORA15
3. Using the Cisco TFTP server
Download a Cisco TFTP server in Windows (Baidu can), and then set up the TFTP server root directory, can be used anywhere else TFTP client access to download; Now many development boards are equipped with TFTP client commands, using the following methods:
#tftp –g–r file name TFTP server IP
-G means to get the file,-R to get the file from remote;
There is also a way to use the TFTP server:
#tftp Cisco server IP
>get file name
>q #表示退出
The disadvantage of the TFTP method is that the directory cannot be transferred.
Second, between Linux and Linux (except Samba, TFTP, etc.)
1. Mount Mount mode
Attach the specified directory of the target Linux to the specified directory of native Linux, if you can ping each other, fire
The wall is turned off, NFS server is turned on, NFS directory specified (see http://blog.csdn.net/bull_liu/article/details/6514744 for details):
#mount-T Nfs-o nolock 192.168.0.94:/linux-test/mnt
2. Using the SCP command
The command is commonly used under Linux now (to enter the password of the remote system user, if any):
Get file:
#scp root@192.168.1.101:/test/hello.c/mnt/Copy a single file
#scp –r [Email protected]:/test/mnt copy Directory
Send file
#scp/test/hello.c root@192.168.1.101/mnt/Copy a single file
#scp –r/test/root @192.168.1.101/mnt/

Several ways to share files between Linux and Linux, Windows

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.