FAQ unzip无法解压文件
[root@TEST144239 tmp]# unzip linx64_11gR2_database_1of2.zip
Archive: linx64_11gR2_database_1of2.zip
warning [linx64_11gR2_database_1of2.zip]: 4652886 extra bytes at beginning or within zipfile
(attempting to process anyway)
error [linx64_11gR2_database_1of2.zip]: start of central directory not found;
zipfile corrupt.
(please check that you have transferred or created the zipfile in the
appropriate BINARY mode and that you have compiled UnZip properly)
导致解压不了,有两个可能因素:
1.zip文件,如果是从某个机器下载的,应该尽量保证是以 二进制编码方式下载,否则也会导致unzip 解压不了.
[root@ZTE-TEST144239 ~]# ftp 10.30.1.25
Connected to 10.30.1.25 (10.30.1.25).
220-FileZilla Server version 0.9.31 beta
220-written by Tim Kosse (Tim.Kosse@gmx.de)
220 Please visit http://sourceforge.net/projects/filezilla/
Name (10.30.1.25:root): ftp
331 Password required for ftp
Password:
230 Logged on
Remote system type is UNIX.
#确保文件是以二进制方式获得#
ftp> bin
200 Type set to I
ftp> get /public/数据库/ORACLE/11G/linux64/p10404530_112030_Linux-x86-64_1of7.zip /var/tmp/p10404530_112030_Linx-x86-64_1of7.zip
2.unzip命令不能解压超过2G的文件 通过查找资料有个7z的程序可以解压超过2G的压缩包
http://pkgs.repoforge.org/p7zip/ 该地址下载7zip包
首先通过 file /bin/ls命令查看linux是32位还是64位:
[root@TEST144239 tmp]# file /bin/ls
/bin/ls: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, stripped
所以 下载并安装p7zip-9.04-1.el3.rf.x86_64.rpm和p7zip-plugins-9.04-1.el3.rf.x86_64.rpm这两个包:
[root@TEST144239 tmp]# rpm -ivh p7zip-9.04-1.el3.rf.x86_64.rpm
warning: p7zip-9.04-1.el3.rf.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 6b8d79e6: NOKEY
Preparing... ########################################### [100%]
1:p7zip ########################################### [100%]
[root@TEST144239 tmp]# rpm -ivh p7zip-plugins-9.04-1.el3.rf.x86_64.rpm
warning: p7zip-plugins-9.04-1.el3.rf.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 6b8d79e6: NOKEY
Preparing... ########################################### [100%]
1:p7zip-plugins ########################################### [100%]
FAQ unzip无法解压文件的更多相关文章
- Linux解压文件
zip: 解压:unzip filename 解压到tmp文件夹:unzip filename.zip -d /tmp 查看压缩文件而不解压:unzip filename.zip -v tar.gz: ...
- Linux命令(16)压缩,解压文件
tar: 简介:tar命令只是把目录打包成一个归档(文件),并不负责压缩.在tar命令中可以带参数调用gzip或bzip2压缩.因为gzip和bzip2只能压缩单个文件. 在linux下是不需要后缀名 ...
- AIX系统上压缩与解压文件
压缩. 命令格式: #tar -cvf (或xvf)+文件名+设备 C:是本地到其他设备 x:是其他设备到本地 r:是追加,比如打包时,将其他文件追加进来使用该参数. t:显示tar包里的内容,但还原 ...
- 遍历文件夹及其子文件夹下的.pdf文件,并解压文件夹下所有的压缩包
List<PDFPATH> pdfpath = new List<PDFPATH>(); List<string> ziplist = new List<st ...
- 关于Java解压文件的一些坑及经验分享(MALFORMED异常)
文章也已经同步到我的csdn博客: http://blog.csdn.net/u012881584/article/details/72615481 关于Java解压文件的一些坑及经验分享 就在本周, ...
- mac通过自带的ssh连接Linux服务器并上传解压文件
需求: 1:mac连接linux服务器 2:将mac上的文件上传到linux服务器指定位置 3:解压文件 mac上使用命令,推荐使用 iterm2 .当然,也可以使用mac自带的终端工具. 操作过程: ...
- 【转载】.NET压缩/解压文件/夹组件
转自:http://www.cnblogs.com/asxinyu/archive/2013/03/05/2943696.html 阅读目录 1.前言 2.关于压缩格式和算法的基础 3.几种常见的.N ...
- C#工具类:使用SharpZipLib进行压缩、解压文件
SharpZipLib是一个开源的C#压缩解压库,应用非常广泛.就像用ADO.NET操作数据库要打开连接.执行命令.关闭连接等多个步骤一样,用SharpZipLib进行压缩和解压也需要多个步骤.Sha ...
- 本地上传文件至服务器的技巧(linux文件压缩及解压文件)
linux(ubuntu)文件解压及压缩文件 ubuntu支持文件的解压及压缩功能, 如果ubuntu上面没有安装过unzip工具的话,可以通过下面命令安装: sudo apt-get install ...
随机推荐
- HDU 4386
http://acm.hdu.edu.cn/showproblem.php?pid=4386 题意:给四条边长,问能否组成四边形,如果能,求最大面积 求最大面积用海伦公式的四边形推广,p=(a+b+c ...
- event.keyCode|| event.which.的用法
HTML 用户名:<input type="text" id="UserAccount" onKeyPress="JumpByEnter(Use ...
- ARM Mysql c 通信
/************************************************************************************ * ARM Mysql c ...
- 【ajax】FormData
- Core Java Volume I — 3.8. Control Flow
3.8. Control FlowJava, like any programming language, supports both conditional statements and loops ...
- iOS学习笔记---c语言第八天
指针 首先将变量a的地址存放在另一个变量中,比如存放在变量b中,然后通过变量b来间接引用变量a,间接读写变量a的值.用来存放变量地址的变量,就称为"指针变量" int *p=nul ...
- xcode中的一些快捷键
隐藏xcode command+h退出xcode command+q关闭窗口 command+w关闭所有窗口 command+option+w关闭当前项目 command+control+w关闭当前文 ...
- 136. Single Number
Given an array of integers, every element appears twice except for one. Find that single one. 代码如下: ...
- 112. Path Sum
Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all ...
- form表单验证
<script> $(document).ready(function(){ $('.pinglunform').submit(function(){ var issubmit = 0; ...