A summary of how files are transferred between Windows and Linux

Source: Internet
Author: User
Tags ftp login ssh secure shell

Original address: http://www.cnblogs.com/wxjnew/archive/2013/06/05/3118808.htmlSummary of how files are transferred between Windows and Linux

Of course, there are a lot of two ways to transfer files between Windows and Linux, and here's just a list of what you've encountered in your work as a note;

Method One: Installing the SSH Secure Shell client Client

Install to log in directly to Linux, if you export files from Linux you need to do so

The file automatically returns to the current directory of the Windows window;

Method 2: Use the Windows cmd Window command

Microsoft Windows XP [version 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\administrator>d:

D:\>e:

STEP1:FTP Login

E:\>ftp 128.8.28.212

Connected to 128.8.28.212. VsFTPd 2.2.2 User (128.8.28.212: (None)): Oracle 331 Please specify the password. password:230 Login successful.

Step2: Viewing a list of files in a directory

ftp> CD WANGXJ-Directory successfully changed. ftp> ls PORT command successful. Consider using PASV. Here comes the directory listing. Enfo_ods.dmp enfo_ods.log tsubject.dmp tsubject.log 226 Directory send OK. ftp: Received 56 bytes, spents 0.00Seconds 56000.00Kbytes

Step3: Download from the current directory of Linux

ftp> Get Enfo_ods.dmpPORT Command successful. Consider using PASVOpening BINARY mode data connection for Enfo_ods.dmp (325029888 bytes)226 Transfer complete.ftp: Received 325029888 bytes, spents 27.39Seconds 11866.74kbytes/sec.

ftp> get enfo_ods.log PORT command successful. Consider using PASV. Opening BINARY mode data connection for Enfo_ods.log (13704 bytes). 226 Transfer complete. ftp: Received 13704 bytes, spents 0.00Seconds 13704000.00kbytes/sec. step4: Upload files from windows to Linux ftp> put test.ktr; TEST.KTR: File not found //exit FTP or use bye ftp> quit

E:\>ftp 128.8.28.212

Connected to 128.8.28.212. VsFTPd 2.2.2 User (128.8.28.212: (None)): Oracle 331 Please specify the password. password:230 Login successful. ftp> put E:\test.ktr PORT command successful. Consider using PASV. Ok to send data. 226 Transfer complete. ftp: Send 23410 bytes, spents 0.00Seconds 23410000.00kbytes/sec. ftp>

Note:

FTP is a general-purpose protocol that does not differentiate between systems.

Know the IP of the Linux machine. Start-and-run, enter CMD and return, type the following command (> command prompt without input): > FTP Linux machine IP address > Binary > Put Windows system Local file full path/linux target on system path > Bye    which, if it is a text file, can be set to binary transfer mode without binary (default text mode, text format is automatically converted). If a non-text file (such as an executable file), it is recommended that you set it to binary mode. 

A summary of how files are transferred between Windows and Linux

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.