如何压缩包含超过12GB数据的文件夹 [英] How to zip folder that contains more than 12GB data

查看:82
本文介绍了如何压缩包含超过12GB数据的文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要压缩一个包含大量文件的文件夹.当我尝试在命令行中进行zip压缩时,它显示zip错误:输入文件读取失败

I have a requirement to zip a folder which contains large number of files. When I tried to zip in command line, it is showing zip error: Input file read failure

我在网上搜索后发现".ZIP文件格式,只能处理可以包含在32位整数中.还是有另一种方法可以解决这个问题?

I searched net and found "The .ZIP file format, only handles file lengths that can be contained in a 32-bit integer." If so, then it must be the cause of the error I got, because my folder size is more than 12GB. Is there any way to extend the file size to be zipped. Or is there another way to solve this?

我正在使用CENTOS 5.

I am using CENTOS 5.

谢谢.

推荐答案

您可以为此使用tar.

You can use tar for that.

只需尝试:

$tar -cvzf compress.tgz /path/to/your/data

并提取出来:

$tar -xvzf compress.tgz

这篇关于如何压缩包含超过12GB数据的文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆