Linux uses serial ports and Windows to transfer files __linux

Source: Internet
Author: User

In daily work, the need to transfer files between Windows PC and embedded Linux development boards is frequently encountered, and the following provides a method:


Rz,sz is a command-line tool for Linux/unix Zmodem file transfer with Windows.

First of all:

The Windows side installs Zmodem TELNET/SSH clients (such as Xshell or SECURECRT).
Linux Development Board to install Lrzsz (download lrzsz-0.12.20.tar.gz, compile installation). You can use the alias rz= "Lrz" && alias sz= "LSZ" to generate the generic alias RZ and Sz.

Then, on the Linux Development Board:
Run RZ, that is, receive files, Windows side of the Xshell will pop up the file selection dialog box, select the file to close the dialog box, the file will be uploaded to the current directory in Linux.
Running SZ filename will send files to Windows (the saved directory is preconfigured).

Tips:

1. Serial transmission speed is relatively slow, suitable for small files, for large files or the proposed use of FTP transmission.

2. The above method also applies to file transfer between Linux PC (using minicom) and embedded Linux development boards.

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.