Home  >  Article  >  php教程  >  Implement linux and windows file transfer

Implement linux and windows file transfer

高洛峰
高洛峰Original
2016-11-23 11:45:541649browse

Actually, this topic is a bit big. What is introduced here is only one of the file transfer between Linux and Windows, but this method is very practical, that is: ZModem protocol

The specific Linux commands are: rz and sz

But in fact they These are two very convenient tools.

rz, sz is a command line tool for ZModem file transfer between Linux/Unix and Windows. The Windows side needs to support ZModem’s telnet/ssh client. SecureCRT can be used to log in to the Unix/Linux host (telnet or ssh is acceptable)
1. rz, receive the file, SecureCRT will pop up the file selection dialog box, close the dialog box after selecting the file, and the file will be uploaded to the current directory. Here is a trick: In fact, you don’t need to type the rz command on the command line. Just drag and drop the files you want to transfer into the SecureCRT window, and SecureCRT will automatically complete the transfer.

2. Run the command sz file1 file2 to send files to windows (the saved directory can be configured). It is much more convenient than the ftp command, and the server does not need to open the FTP service.

Note: In some Linux versions, the default is not It comes with sz/rz tools, so you have to install one yourself. It’s actually very simple.

shell# yum search lrzsz
shell# yum install lrzsz-x.x.x


Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn