linux - RAR和ZIP压缩格式的区别?
ringa_lee
ringa_lee 2017-04-17 16:13:32
0
3
486

在windows下用rar压缩后改后缀名为zip再上传到linux服务器上会不识别zip文件,提示找不到,但是直接压缩成zip格式就可以。奇怪的是我之前用改后缀名的方式linux上部署也没问题,但是后来有一次提示不能解压才发现有这个问题,不知道是何原因,有人知道吗?

ringa_lee
ringa_lee

ringa_lee

reply all(3)
洪涛

Changing the suffix name cannot modify the file at all. The modified zip file is still a rar file. Windows should also decompress it according to the rar decompression method. You need to re-zip the file to use it under Linux.

左手右手慢动作

It’s a bit self-deceiving to achieve the desired effect by changing the suffix name.
An unrelated question by the way: Will the zip file containing Chinese characters you compressed under the win environment appear garbled after decompression under Linux?

左手右手慢动作

rar and zip are two different encoding formats = = Of course, zip cannot decode rar packages. Even if the extension is changed, the format remains the same = = It’s like pronouncing Chinese Pinyin using English grammar, incomprehensible = =

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!