One. Overview
This article describes a method how to transfer files between the host and Linux host windows. Because sometimes, some files in the Linux host may be used in the windows environment. For example, grab some pictures in the Linux host and want to pass them to the windows host as an illustration of the word document. Or online from the Windows host, downloaded some linux packages, want to pass to the Linux host to install. In these cases, a method is needed to interoperate between the two. In this paper, ftp
way to transfer files, the software uses Serv-U. Install Serv-U under the widows host to make it an ftp server. Upload and download files via the ftp command under the Linux host. After testing, it can meet the needs very well.
Two. Experimental environment
software environment:
A machine:
operating system: windows2000, IP:. 10.18.34.115
B machine: < BR>
Operating System: Linux Red Hat 9.0, IP: 10.18.34.251.
Three. Installation
1. Serv-U installation
execute setup.exe, all selected by default option.
2. General settings of Serv-U
After the installation is complete, the configuration wizard dialog box will pop up. Here, the corresponding information can be filled in as required to configure successfully. An ftp server. Here, the IP address of the A machine is 10.18.34.115. Follow the installation wizard to do the following:
1) IP address: Enter "10.18.34.115". (This is empty if you use a dynamic or no legal IP address).
2) Domain name (domain name): Enter the domain name, such as "RoseRed" (here arbitrarily).
3) Install as system server (install as a system server): Select "Yes".
4) Allow anonymous access: You can choose according to your needs, such as "Yes". www.45it.com (applied for computer hardware and software)
5) anonymous home directory (anonymous home directory): Here you can enter (or select) a main directory for anonymous user login.
6) Lock anonymous users in to their home directory: Whether to set the home directory of the previous step to the user's root directory; generally select "Yes".
7) Create named account: Here, ask whether to establish a normal login user account; generally select "Yes".
8) Account login name (user login name): General user account name, such as input "yint".
9) Password: Set the user password. Since the entered password is displayed in plain text (not *), it is only lost once.
10) Home directory: Enter (or select) the user's home directory, such as "E:\\" (this article will operate on the file on E:\\).
< BR> 11) Lock anonymous users in to their home directory: Select "Yes".
12) Account admin privilege (privilege account management): General use its default value of "No privilege" (the general account).
13) Finally select “Finish” to complete the setup.
establish a good FTP server, the server address is "RoseRed", under which there are two users, one anonymous user "Anonymous", its password is blank; a normal user "yint", its password For the content entered in the wizard.
3. Serv-U permission settings
For example, if you select "yint" user in the left panel, the setting window as shown below appears in the right panel. . Select the "Dir Access" tab to set whether the user has "Read", Write, and Write to the file in its home directory (here "E:\\"). , "Append" (write and add), "Delete", "Execute" (execute) permissions; whether the directory has "List" (display a list of files and directories), "Create" (create a new directory) and "Remove" (modify directory, including delete, move, rename) permissions and so on.
can be set as needed, generally select Read, Write.
four, using the ftp command in linux
1. ftp server connected
format: ftp [hostname ip-address]
a In the linux command line, type: ftp 10.18.34.115
b) The server asks for your username and password, enter yint and the corresponding password respectively, and you can pass the authentication.
2. Download the file
The download file usually uses the get and mget commands.
a) get
Format: get [remote-file] [local-file] Transfer files from the remote host to the local host. To get E:\
ose\\1.bmp on the server:
ftp> get /rose/1.bmp 1.bmp (Enter)
b) mget
Format: mget [remote-files] Receives a batch of files from the remote host to the local host. To get all the files under E:\
ose\\ on the server:
ftp> cd /rose ftp> mget *.* (Enter)
Note: The files are downloaded. Under the current directory of the linux host. For example, if the ftp command is run under /root/yint, the files are downloaded to /root/yint.
3.Upload file
a) put
Format: put local-file [remote-file] Transfer a local file to the remote host. To transfer the local 1.bmp to the remote host E:\
ose and rename it to 333.bmp
ftp> put 1.bmp /rose/333.bmp (Enter)
< BR> b) mput
Format: mput local-files to transfer a batch of files from the local host to the remote host. To upload all bmp files in the local current directory to the server E:\
ose
ftp> cd /rose (carriage return) ftp> mput *.bmp (carriage return)
Note: The uploaded files are from the current directory of the host. For example, if the ftp command is run under /root/yint, only the file linux under /root/yint will be uploaded to the server E:\
ose.
With the advantage of strong stability, embedded DVR is increasingly accepted by the security indust
under RedHat Enterprise Linux server 5.4 First, system environment operating system: RedHat Enterp
System availability can be greatly improved by hardware redundancy or software. Hardware redundancy
Windows CE is an embedded operating system developed by Microsoft that can be used in a variety of e
Linux rsync command detailed finishing
The data transmission on the link layer of the linux protocol stack
Linux system to refresh the motherboard BIOS method
Solve ssh automatic disconnection failure
Neighbor subsystem of the linux protocol stack (overview 1)
Linux system learning method entry experience
Debian installation jdownloader method
The correct way to restore EXT3 Superblock(bad superblock)
Neighbor subsystem of linux protocol stack (garbage collection seven)
What is the reason that the Linux operating system does not need to be defragmented?
Win8.1 version of Weibo download: support picture cropping, filter
Win7 Quick Find Files Common Tips
Installshield 64-bit OS packaging considerations
Windows XP system taskbar nine secrets
What should I do if the quick launch bar of the win7 computer disappears?
Win2000 shutdown display save settings but can not shut down
How to turn off the default navigation sound in Windows 7 operating system?
How to make Windows 8 support PDF/ISO file format
How does Win10 quickly open the control panel? How to quickly open the control panel of Win10 system