linux解压超过2G大文件

 

最近数据服务器出现问题 通过exp命令备份 数据达到14G

压缩命令

zip -r 20130314.zip ./20130314.dmp

 

ls -l 查看文件大小 压缩zip格式也有3.2G

-rw-r--r-- 1 root   root  3826207807 03-28 22:14 20130314.zip

新准备的机器 将20130314.zip 文件拷贝到新服务器

通过 unzip 20130314.zip 出现错误

 

[root@tianchi154 ygcg]# unzip 20130314.zip
Archive:  20130314.zip
warning [20130314.zip]:  76 extra bytes at beginning or within zipfile
  (attempting to process anyway)
error [20130314.zip]:  reported length of central directory is
  -76 bytes too long (Atari STZip zipfile?  J.H.Holm ZIPSPLIT 1.1
  zipfile?).  Compensating...
   skipping: 20130314.dmp            need PK compat. v4.5 (can do v2.1)

note:  didn't find end-of-central-dir signature at end of central dir.
  (please check that you have transferred or created the zipfile in the
  appropriate BINARY mode and that you have compiled UnZip properly)

 

查看资料原来是unzip命令不能解压超过2G的文件 通过查找资料有个7z的程序可以解压超过2G的压缩包

http://pkgs.repoforge.org/p7zip/

该地址下载7zip包

首先通过

file /bin/ls命令查看linux是32位还是64位

[root@tianchi154 ygcg]# file /bin/ls
/bin/ls: ELF 64-bit LSB executable, AMD x86-64, version 1 (SYSV), for GNU/Linux 2.6.9, dynamically linked (uses shared libs), for GNU/Linux 2.6.9, stripped
可以看出是8086cpu中的单字64位长的系列

所以 我下载了p7zip-plugins-9.04-1.el3.rf.x86_64.rpm和p7zip-9.04-1.el3.rf.x86_64.rpm这两个包

上传到linux通过rpm命令安装

rpm -ivh p7zip-9.04-1.el3.rf.x86_64.rpm

rpm -ivh p7zip-plugins-9.04-1.el3.rf.x86_64.rpm

 

安装完成后 通过命令解压

7z e 20130314.zip解压成功

 


 

  • 0
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值