用windows系统的rar软件压缩的zip文档,在linux环境下格式不支持,linux用unzip出现了错误“unsupported compression method”。

网上说用7z,然而我没有管理员权限。

所以在windows下用了命令行里的tar命令打包成.tar.gz的格式,然后传到linux服务器上解压。

tar加密打包:

tar -zcvf - ./file | openssl des3 -salt -k pwd | dd of=file.des3

解压缩:

openssl des3 -d -k pwd -salt -in file.tar.gz | tar xz -C /your_path

相关文章:

  • 2022-12-23
  • 2021-06-05
  • 2022-01-27
  • 2021-10-10
  • 2022-01-31
  • 2022-12-23
  • 2021-07-17
猜你喜欢
  • 2021-12-23
  • 2021-05-31
  • 2021-08-04
  • 2022-01-18
  • 2021-08-03
相关资源
相似解决方案