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