Resolution of file corruption caused by uploading via FTP put command

Source: Internet
Author: User
Tags ftp put command

Upload files to a Windows FTP server from the Linux command line. Then in another Windows client login to the FTP server download, but the downloaded file size changed, EXE file error is not executed correctly. Intentionally packaged files (. rar) also prompt for file corruption.

This situation has occurred several times.

Discovery: There are two modes of mode character mode (ASCII) and binary mode (binary) for uploading files to an FTP server via Linux. The default is ASCII mode. Generally upload EXE files and compressed packets to be used in binary mode.

Specific operation:

After you log in to FTP, before uploading the file, enter the bin in the ftp> state.

And then you can put/root/desktop/test.rar/test.rar it.

Note that all two paths are paths with filenames, so there is the ability to rename them while uploading.

After uploading, you can check with LS.

Resolution of file corruption caused by uploading via FTP put command

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.