I work in windows and use securecrt to connect to a remote Linux host.
I downloaded a zip file from the Internet (all files are PDF and DOC files, which need to be viewed under Win) and decompressed it with RAR in windows. Use the RZ command to transfer the ZIP file to Linux and decompress it with unzip. No exception occurs.
Pack the file into a tar.gz file using the tarcommand. The SZ command is transmitted to Windows and opened with WinRAR. The file name is garbled, but the file content is good.
The reason explained on the internet is that the encoding information of the path is not saved during tar compression. For example, if the file system uses UTF-8, but Windows uses GBK for decompression, garbled characters will occur. At the same time, we recommend 7 zip, which contains the encoding information of the file path. The compression ratio is good, and many formats are supported. It is open-source.
So download from the InternetSource codeCompile and transmit:
Wget http://jaist.dl.sourceforge.net/project/p7zip/p7zip/9.20.1/p7zip_9.20.1_src_all.tar.bz2tar xvjf p7zip_9.20.20.src_all.tar.bz2cd p7zip_9.20.1make & make install7za A aaa.7z myfoldersz aaa.7z
Experience: It is very convenient to use sz/Rz to transmit a single file, but when transferring a folder, you may need to compress 7z into a file before uploading it.