windows下如何建立.tar.gz格式的压缩文件?

Linux下支持tar.gz的压缩文件。如果我们要上传文件到linux系统的服务器上,然后用SSH方式解压缩,那么首先要使用压缩工具把文件压缩成.tar.gz的格式。

但是常见的压缩工具winara、winzip似乎都没有直接压缩.tar.gz格式的压缩文件。

推荐大家使用7-zip这款压缩工具来创建.tar.gz文件 7-zip压缩tar.gz工具(点此下载)

先将要压缩的文件用7-zip创建成tar格式的压缩文件;

然后再把创建的tar格式的压缩文件继续压缩成Gzip格式的压缩文件,那么就能创建.tar.gz的文件了。

Did you enjoy this post? Why not leave a comment below and continue the conversation, or subscribe to my feed and get articles like this delivered automatically to your feed reader.

Comments

[...] (linux下好像只支持.tar.gz的直接解压缩。压缩文件为.tar.gz的方法点此查看) [...]

压缩为zip格式, 上传后unzip file.zip就行了

留下评论

(必需)

(必需)