Overview
This article describes how to transfer files between a Linux host and a Windows host. 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.
This article uses ftp 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.
II. Experimental Environment
network topology as follows:
Software Environment:
A machine:
OS: windows2000, IP: 10.18.34.115
.
B:
Operating System: Linux Red Hat 9.0, IP: 10.18.34.251.
III.
1. Serv-U installation
Execute setup.exe, select all default options.
2. General Settings of Serv-U
After the installation is complete, the Configuration Wizard dialog box will pop up. Here you can fill in the corresponding information as required to configure 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: Enter the domain name, for example "RoseRed" (anywhere here).
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".
5) anonymous home directory: Here you can enter (or select) a home directory for anonymous users to log in.
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 if you want to establish a normal login user account; generally select "Yes".
8) Account login name: The name of a normal user account, for example, enter "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:\\).
11) Lock anonymous users in to their home directory: Select "Yes".
12) Account admin privilege: Generally use its default value "No privilege" (ordinary account).
13) last selected "Finish" (end) to complete the setting, as shown below:
can be seen from the above figure, it has been created an FTP server, the server address " RoseRed", there are two users, one is the anonymous user "Anonymous", its password is empty; one is the ordinary user "yint", its password is 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 shown below will appear 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.
Fourth, use ftp command under Linux
1. Connect ftp server
Format: ftp [hostname ip-address]
a) Under the linux command line Input: 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 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 < Br>
Format: mget [remote-files]
Receive a batch of files from the remote host to the local host.
To get all the E:\
ose\\ on the server File,
ftp> cd /rose
ftp> mget *.* (Enter)
Note: The files are downloaded to 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 In the 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 (carriage return)
b) mput
Format: mput local-files
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 (Enter) < Br>
Note: The uploaded files are all 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.
4. Disconnect
bye: Interrupt the connection to the server.
ftp> bye (Enter)
DevOps is the key to more and more large companies and organizations, so it is important for us to r
LDM/STM instructions are mainly used for field protection, data copying, parameter transfer, etc. ST
In Apple Mac OS and Microsoft Windows have supported multi-touch today, the Linux open source commun
directory summary: /: root directory, generally only the directory under the root directory, do not
Postfix+dovecot+maildrop+mailscanner+clamav+spamassassin build
Detailed steps for Redis installation under CentOS 6.5
Analysis of Linux system computer crash causes
FPGA clock edge sampling problem
The best database management software under linux
Linux system computer crashes the cause of failure
The principle of Windows CE cross-process memory injection
Linux system PPPoE broadband connection setting method
Kingate proxy server setup steps
How to modify the installation path of Windows 8 system application store software
What is the difference between the three versions of Windows 8
It turns out that Windows XP can also restart
Grub's handling coup after Win7 startup
Windows Vista system disk space is insufficient solution
How does Win7 set hibernation continuously? Win7 sleep continuous network setting method
How to shorten the shutdown time of Win7 system
Understand the connection and difference between BIOS and CMOS