- 浏览: 4754664 次
- 性别:
- 来自: 上海
文章分类
最新评论
-
bzhao:
你也应该可以这样:(not tested)./rbtunnel ...
在Bash脚本中怎么关闭文件描述符? -
bzhao:
如果有A进程原代码情况下,通过如下调用,把他的子进程继承关闭则 ...
在Bash脚本中怎么关闭文件描述符? -
Master-Gao:
楼主咋没分析下源码呢?
我使用过的Linux命令之dirname - 截取给定路径的目录部分 -
jiedushi:
tail -F 就可以吧
Linux下实时跟踪log4j日志文件的bash脚本 - 增强了tail -f的功能 -
java_is_new:
新手学习了,就是不明白为一个网卡配多个ip有什么用
我使用过的Linux命令之ifconfig - 网络配置命令
我使用过的Linux命令之unzip - 解压zip文件
本文链接:http://codingstandards.iteye.com/blog/792040 (转载请注明出处)
用途说明
zip文件是一种常用的压缩文件格式,WinZip、WinRar等压缩软件都支持zip文件格式,就连java的jar包也是zip格式的,Firefox插件xpi文件也是zip格式的。Linux在zip文件上的支持也是很周到的,它提供了zip、unzip和zcat等命令来支持。本文的主题是讲一下使用unzip命令来解压zip格式的压缩文件。当我们需要把Windows上的很多文件(比如一个目录中的所有文件)上传到Linux时,可以先把这些文件打包到一个zip文件中,然后再上传,再在Linux下利用unzip进行解压,这比一个一个上传好得多。
常用参数
在linux下解压zip文件,最简单的方式就是unzip命令直接跟上要解压的zip文件。
unzip <zip-file>
上面的用法是把文件解压到当前目录下,如果要把文件解压到指定的目录下,需要用到-d参数。
unzip -d <dst-dir> <zip-file>
解压的时候,有时候不想覆盖已经存在的文件,那么可以加上-n参数。
unzip -n <zip-file>
unzip -n -d <dst-dir> <zip-file>
有时候,我们只想看一下zip压缩包中包含哪些文件,就可以使用-l参数。
unzip -l <zip-file>
我们在使用WinZip或WinRar的时候,它显示的文件列表还包含压缩比率,unzip命令使用-v命令也可以看到这些信息。
unzip -v <zip-file>
我们经常会碰到这种情况,从网上下载的zip文件可能不完整,在使用WinZip或WinRar打开的时候,会报错,unzip提供了-t参数来检查zip文件是否损坏。
unzip -t <zip-file>
使用示例
示例一 解压tinyxml开发包
tinyxml是一个解析XML的C++开发包,它小巧玲珑,简单易用。
[root@rhel55 c++]# ls tinyxml_2_6_1.zip -l
-rw-r--r-- 1 root root 296068 10-22 14:25 tinyxml_2_6_1.zip
[root@rhel55 c++]# unzip tinyxml_2_6_1.zip
Archive: tinyxml_2_6_1.zip
creating: tinyxml/
inflating: tinyxml/changes.txt
creating: tinyxml/docs/
inflating: tinyxml/docs/annotated.html
inflating: tinyxml/docs/classes.html
inflating: tinyxml/docs/classTiXmlAttribute-members.html
inflating: tinyxml/docs/classTiXmlAttribute.html
inflating: tinyxml/docs/classTiXmlAttribute.png
inflating: tinyxml/docs/classTiXmlBase-members.html
inflating: tinyxml/docs/classTiXmlBase.html
inflating: tinyxml/docs/classTiXmlBase.png
inflating: tinyxml/docs/classTiXmlComment-members.html
inflating: tinyxml/docs/classTiXmlComment.html
extracting: tinyxml/docs/classTiXmlComment.png
inflating: tinyxml/docs/classTiXmlDeclaration-members.html
inflating: tinyxml/docs/classTiXmlDeclaration.html
extracting: tinyxml/docs/classTiXmlDeclaration.png
inflating: tinyxml/docs/classTiXmlDocument-members.html
inflating: tinyxml/docs/classTiXmlDocument.html
inflating: tinyxml/docs/classTiXmlDocument.png
inflating: tinyxml/docs/classTiXmlElement-members.html
inflating: tinyxml/docs/classTiXmlElement.html
inflating: tinyxml/docs/classTiXmlElement.png
inflating: tinyxml/docs/classTiXmlHandle-members.html
inflating: tinyxml/docs/classTiXmlHandle.html
inflating: tinyxml/docs/classTiXmlNode-members.html
inflating: tinyxml/docs/classTiXmlNode.html
inflating: tinyxml/docs/classTiXmlNode.png
inflating: tinyxml/docs/classTiXmlPrinter-members.html
inflating: tinyxml/docs/classTiXmlPrinter.html
inflating: tinyxml/docs/classTiXmlPrinter.png
inflating: tinyxml/docs/classTiXmlText-members.html
inflating: tinyxml/docs/classTiXmlText.html
extracting: tinyxml/docs/classTiXmlText.png
inflating: tinyxml/docs/classTiXmlUnknown-members.html
inflating: tinyxml/docs/classTiXmlUnknown.html
inflating: tinyxml/docs/classTiXmlUnknown.png
inflating: tinyxml/docs/classTiXmlVisitor-members.html
inflating: tinyxml/docs/classTiXmlVisitor.html
inflating: tinyxml/docs/classTiXmlVisitor.png
inflating: tinyxml/docs/deprecated.html
inflating: tinyxml/docs/doxygen.css
inflating: tinyxml/docs/doxygen.png
inflating: tinyxml/docs/files.html
inflating: tinyxml/docs/functions.html
inflating: tinyxml/docs/functions_0x63.html
inflating: tinyxml/docs/functions_0x64.html
inflating: tinyxml/docs/functions_0x65.html
inflating: tinyxml/docs/functions_0x66.html
inflating: tinyxml/docs/functions_0x67.html
inflating: tinyxml/docs/functions_0x69.html
inflating: tinyxml/docs/functions_0x6c.html
inflating: tinyxml/docs/functions_0x6e.html
inflating: tinyxml/docs/functions_0x6f.html
inflating: tinyxml/docs/functions_0x70.html
inflating: tinyxml/docs/functions_0x71.html
inflating: tinyxml/docs/functions_0x72.html
inflating: tinyxml/docs/functions_0x73.html
inflating: tinyxml/docs/functions_0x74.html
inflating: tinyxml/docs/functions_0x75.html
inflating: tinyxml/docs/functions_0x76.html
inflating: tinyxml/docs/functions_enum.html
inflating: tinyxml/docs/functions_func.html
inflating: tinyxml/docs/functions_func_0x63.html
inflating: tinyxml/docs/functions_func_0x64.html
inflating: tinyxml/docs/functions_func_0x65.html
inflating: tinyxml/docs/functions_func_0x66.html
inflating: tinyxml/docs/functions_func_0x67.html
inflating: tinyxml/docs/functions_func_0x69.html
inflating: tinyxml/docs/functions_func_0x6c.html
inflating: tinyxml/docs/functions_func_0x6e.html
inflating: tinyxml/docs/functions_func_0x70.html
inflating: tinyxml/docs/functions_func_0x71.html
inflating: tinyxml/docs/functions_func_0x72.html
inflating: tinyxml/docs/functions_func_0x73.html
inflating: tinyxml/docs/functions_func_0x74.html
inflating: tinyxml/docs/functions_func_0x75.html
inflating: tinyxml/docs/functions_func_0x76.html
inflating: tinyxml/docs/functions_rela.html
inflating: tinyxml/docs/functions_vars.html
inflating: tinyxml/docs/hierarchy.html
inflating: tinyxml/docs/index.html
inflating: tinyxml/docs/pages.html
inflating: tinyxml/docs/tab_b.gif
inflating: tinyxml/docs/tab_l.gif
inflating: tinyxml/docs/tab_r.gif
inflating: tinyxml/docs/tabs.css
inflating: tinyxml/docs/tinystr_8h_source.html
inflating: tinyxml/docs/tinyxml_8h_source.html
inflating: tinyxml/docs/tutorial0.html
inflating: tinyxml/echo.dsp
inflating: tinyxml/Makefile
inflating: tinyxml/readme.txt
inflating: tinyxml/tinystr.cpp
inflating: tinyxml/tinystr.h
inflating: tinyxml/tinyxml.cpp
inflating: tinyxml/tinyxml.dsw
inflating: tinyxml/tinyxml.h
inflating: tinyxml/tinyxml.sln
inflating: tinyxml/tinyxml_lib.dsp
inflating: tinyxml/tinyxml_lib.vcproj
inflating: tinyxml/tinyxmlerror.cpp
inflating: tinyxml/tinyxmlparser.cpp
inflating: tinyxml/tinyxmlSTL.dsp
inflating: tinyxml/tinyxmlSTL.vcproj
inflating: tinyxml/tinyXmlTest.dsp
inflating: tinyxml/tinyXmlTest.vcproj
inflating: tinyxml/tinyXmlTestSTL.dsp
inflating: tinyxml/tinyXmlTestSTL.vcproj
inflating: tinyxml/utf8test.gif
inflating: tinyxml/utf8test.xml
inflating: tinyxml/utf8testverify.xml
inflating: tinyxml/xmltest.cpp
[root@rhel55 c++]#
示例二 解压tinyxml开发包到/opt/devtools目录
/opt目录常用来存放用户软件的目录,比如我们通常把oracle数据库安装在/opt目录。
这里我们把tinyxml开发包解压到/opt/devtools目录下,其中devtools子目录并不存在,执行该命令时候,这个目录自动创建了。
[root@rhel55 c++]# unzip -d /opt/devtools tinyxml_2_6_1.zip
Archive: tinyxml_2_6_1.zip
creating: /opt/devtools/tinyxml/
inflating: /opt/devtools/tinyxml/changes.txt
creating: /opt/devtools/tinyxml/docs/
inflating: /opt/devtools/tinyxml/docs/annotated.html
inflating: /opt/devtools/tinyxml/docs/classes.html
inflating: /opt/devtools/tinyxml/docs/classTiXmlAttribute-members.html
inflating: /opt/devtools/tinyxml/docs/classTiXmlAttribute.html
inflating: /opt/devtools/tinyxml/docs/classTiXmlAttribute.png
inflating: /opt/devtools/tinyxml/docs/classTiXmlBase-members.html
inflating: /opt/devtools/tinyxml/docs/classTiXmlBase.html
inflating: /opt/devtools/tinyxml/docs/classTiXmlBase.png
inflating: /opt/devtools/tinyxml/docs/classTiXmlComment-members.html
inflating: /opt/devtools/tinyxml/docs/classTiXmlComment.html
extracting: /opt/devtools/tinyxml/docs/classTiXmlComment.png
inflating: /opt/devtools/tinyxml/docs/classTiXmlDeclaration-members.html
inflating: /opt/devtools/tinyxml/docs/classTiXmlDeclaration.html
extracting: /opt/devtools/tinyxml/docs/classTiXmlDeclaration.png
inflating: /opt/devtools/tinyxml/docs/classTiXmlDocument-members.html
inflating: /opt/devtools/tinyxml/docs/classTiXmlDocument.html
inflating: /opt/devtools/tinyxml/docs/classTiXmlDocument.png
inflating: /opt/devtools/tinyxml/docs/classTiXmlElement-members.html
inflating: /opt/devtools/tinyxml/docs/classTiXmlElement.html
inflating: /opt/devtools/tinyxml/docs/classTiXmlElement.png
inflating: /opt/devtools/tinyxml/docs/classTiXmlHandle-members.html
inflating: /opt/devtools/tinyxml/docs/classTiXmlHandle.html
inflating: /opt/devtools/tinyxml/docs/classTiXmlNode-members.html
inflating: /opt/devtools/tinyxml/docs/classTiXmlNode.html
inflating: /opt/devtools/tinyxml/docs/classTiXmlNode.png
inflating: /opt/devtools/tinyxml/docs/classTiXmlPrinter-members.html
inflating: /opt/devtools/tinyxml/docs/classTiXmlPrinter.html
inflating: /opt/devtools/tinyxml/docs/classTiXmlPrinter.png
inflating: /opt/devtools/tinyxml/docs/classTiXmlText-members.html
inflating: /opt/devtools/tinyxml/docs/classTiXmlText.html
extracting: /opt/devtools/tinyxml/docs/classTiXmlText.png
inflating: /opt/devtools/tinyxml/docs/classTiXmlUnknown-members.html
inflating: /opt/devtools/tinyxml/docs/classTiXmlUnknown.html
inflating: /opt/devtools/tinyxml/docs/classTiXmlUnknown.png
inflating: /opt/devtools/tinyxml/docs/classTiXmlVisitor-members.html
inflating: /opt/devtools/tinyxml/docs/classTiXmlVisitor.html
inflating: /opt/devtools/tinyxml/docs/classTiXmlVisitor.png
inflating: /opt/devtools/tinyxml/docs/deprecated.html
inflating: /opt/devtools/tinyxml/docs/doxygen.css
inflating: /opt/devtools/tinyxml/docs/doxygen.png
inflating: /opt/devtools/tinyxml/docs/files.html
inflating: /opt/devtools/tinyxml/docs/functions.html
inflating: /opt/devtools/tinyxml/docs/functions_0x63.html
inflating: /opt/devtools/tinyxml/docs/functions_0x64.html
inflating: /opt/devtools/tinyxml/docs/functions_0x65.html
inflating: /opt/devtools/tinyxml/docs/functions_0x66.html
inflating: /opt/devtools/tinyxml/docs/functions_0x67.html
inflating: /opt/devtools/tinyxml/docs/functions_0x69.html
inflating: /opt/devtools/tinyxml/docs/functions_0x6c.html
inflating: /opt/devtools/tinyxml/docs/functions_0x6e.html
inflating: /opt/devtools/tinyxml/docs/functions_0x6f.html
inflating: /opt/devtools/tinyxml/docs/functions_0x70.html
inflating: /opt/devtools/tinyxml/docs/functions_0x71.html
inflating: /opt/devtools/tinyxml/docs/functions_0x72.html
inflating: /opt/devtools/tinyxml/docs/functions_0x73.html
inflating: /opt/devtools/tinyxml/docs/functions_0x74.html
inflating: /opt/devtools/tinyxml/docs/functions_0x75.html
inflating: /opt/devtools/tinyxml/docs/functions_0x76.html
inflating: /opt/devtools/tinyxml/docs/functions_enum.html
inflating: /opt/devtools/tinyxml/docs/functions_func.html
inflating: /opt/devtools/tinyxml/docs/functions_func_0x63.html
inflating: /opt/devtools/tinyxml/docs/functions_func_0x64.html
inflating: /opt/devtools/tinyxml/docs/functions_func_0x65.html
inflating: /opt/devtools/tinyxml/docs/functions_func_0x66.html
inflating: /opt/devtools/tinyxml/docs/functions_func_0x67.html
inflating: /opt/devtools/tinyxml/docs/functions_func_0x69.html
inflating: /opt/devtools/tinyxml/docs/functions_func_0x6c.html
inflating: /opt/devtools/tinyxml/docs/functions_func_0x6e.html
inflating: /opt/devtools/tinyxml/docs/functions_func_0x70.html
inflating: /opt/devtools/tinyxml/docs/functions_func_0x71.html
inflating: /opt/devtools/tinyxml/docs/functions_func_0x72.html
inflating: /opt/devtools/tinyxml/docs/functions_func_0x73.html
inflating: /opt/devtools/tinyxml/docs/functions_func_0x74.html
inflating: /opt/devtools/tinyxml/docs/functions_func_0x75.html
inflating: /opt/devtools/tinyxml/docs/functions_func_0x76.html
inflating: /opt/devtools/tinyxml/docs/functions_rela.html
inflating: /opt/devtools/tinyxml/docs/functions_vars.html
inflating: /opt/devtools/tinyxml/docs/hierarchy.html
inflating: /opt/devtools/tinyxml/docs/index.html
inflating: /opt/devtools/tinyxml/docs/pages.html
inflating: /opt/devtools/tinyxml/docs/tab_b.gif
inflating: /opt/devtools/tinyxml/docs/tab_l.gif
inflating: /opt/devtools/tinyxml/docs/tab_r.gif
inflating: /opt/devtools/tinyxml/docs/tabs.css
inflating: /opt/devtools/tinyxml/docs/tinystr_8h_source.html
inflating: /opt/devtools/tinyxml/docs/tinyxml_8h_source.html
inflating: /opt/devtools/tinyxml/docs/tutorial0.html
inflating: /opt/devtools/tinyxml/echo.dsp
inflating: /opt/devtools/tinyxml/Makefile
inflating: /opt/devtools/tinyxml/readme.txt
inflating: /opt/devtools/tinyxml/tinystr.cpp
inflating: /opt/devtools/tinyxml/tinystr.h
inflating: /opt/devtools/tinyxml/tinyxml.cpp
inflating: /opt/devtools/tinyxml/tinyxml.dsw
inflating: /opt/devtools/tinyxml/tinyxml.h
inflating: /opt/devtools/tinyxml/tinyxml.sln
inflating: /opt/devtools/tinyxml/tinyxml_lib.dsp
inflating: /opt/devtools/tinyxml/tinyxml_lib.vcproj
inflating: /opt/devtools/tinyxml/tinyxmlerror.cpp
inflating: /opt/devtools/tinyxml/tinyxmlparser.cpp
inflating: /opt/devtools/tinyxml/tinyxmlSTL.dsp
inflating: /opt/devtools/tinyxml/tinyxmlSTL.vcproj
inflating: /opt/devtools/tinyxml/tinyXmlTest.dsp
inflating: /opt/devtools/tinyxml/tinyXmlTest.vcproj
inflating: /opt/devtools/tinyxml/tinyXmlTestSTL.dsp
inflating: /opt/devtools/tinyxml/tinyXmlTestSTL.vcproj
inflating: /opt/devtools/tinyxml/utf8test.gif
inflating: /opt/devtools/tinyxml/utf8test.xml
inflating: /opt/devtools/tinyxml/utf8testverify.xml
inflating: /opt/devtools/tinyxml/xmltest.cpp
[root@rhel55 c++]#
示例三 解压文件,不覆盖已经存在的文件
[root@rhel55 c++]# unzip -n -d /opt/devtools tinyxml_2_6_1.zip
Archive: tinyxml_2_6_1.zip
[root@rhel55 c++]#
示例四 查看zip文件中包含的文件列表
[root@rhel55 c++]# unzip -l tinyxml_2_6_1.zip
Archive: tinyxml_2_6_1.zip
Length Date Time Name
-------- ---- ---- ----
0 03-23-10 13:16 tinyxml/
14898 03-23-10 13:16 tinyxml/changes.txt
0 03-23-10 13:16 tinyxml/docs/
3796 03-23-10 13:16 tinyxml/docs/annotated.html
2809 03-23-10 13:16 tinyxml/docs/classes.html
8304 03-23-10 13:16 tinyxml/docs/classTiXmlAttribute-members.html
15523 03-23-10 13:16 tinyxml/docs/classTiXmlAttribute.html
401 03-23-10 13:16 tinyxml/docs/classTiXmlAttribute.png
3890 03-23-10 13:16 tinyxml/docs/classTiXmlBase-members.html
16033 03-23-10 13:16 tinyxml/docs/classTiXmlBase.html
1470 03-23-10 13:16 tinyxml/docs/classTiXmlBase.png
19288 03-23-10 13:16 tinyxml/docs/classTiXmlComment-members.html
7737 03-23-10 13:16 tinyxml/docs/classTiXmlComment.html
518 03-23-10 13:16 tinyxml/docs/classTiXmlComment.png
20501 03-23-10 13:16 tinyxml/docs/classTiXmlDeclaration-members.html
10823 03-23-10 13:16 tinyxml/docs/classTiXmlDeclaration.html
557 03-23-10 13:16 tinyxml/docs/classTiXmlDeclaration.png
24057 03-23-10 13:16 tinyxml/docs/classTiXmlDocument-members.html
30742 03-23-10 13:16 tinyxml/docs/classTiXmlDocument.html
535 03-23-10 13:16 tinyxml/docs/classTiXmlDocument.png
23787 03-23-10 13:16 tinyxml/docs/classTiXmlElement-members.html
30888 03-23-10 13:16 tinyxml/docs/classTiXmlElement.html
514 03-23-10 13:16 tinyxml/docs/classTiXmlElement.png
5695 03-23-10 13:16 tinyxml/docs/classTiXmlHandle-members.html
25214 03-23-10 13:16 tinyxml/docs/classTiXmlHandle.html
18771 03-23-10 13:16 tinyxml/docs/classTiXmlNode-members.html
60709 03-23-10 13:16 tinyxml/docs/classTiXmlNode.html
1303 03-23-10 13:16 tinyxml/docs/classTiXmlNode.png
5515 03-23-10 13:16 tinyxml/docs/classTiXmlPrinter-members.html
14684 03-23-10 13:16 tinyxml/docs/classTiXmlPrinter.html
380 03-23-10 13:16 tinyxml/docs/classTiXmlPrinter.png
19711 03-23-10 13:16 tinyxml/docs/classTiXmlText-members.html
10566 03-23-10 13:16 tinyxml/docs/classTiXmlText.html
485 03-23-10 13:16 tinyxml/docs/classTiXmlText.png
18804 03-23-10 13:16 tinyxml/docs/classTiXmlUnknown-members.html
7013 03-23-10 13:16 tinyxml/docs/classTiXmlUnknown.html
521 03-23-10 13:16 tinyxml/docs/classTiXmlUnknown.png
3643 03-23-10 13:16 tinyxml/docs/classTiXmlVisitor-members.html
8524 03-23-10 13:16 tinyxml/docs/classTiXmlVisitor.html
386 03-23-10 13:16 tinyxml/docs/classTiXmlVisitor.png
2622 03-23-10 13:16 tinyxml/docs/deprecated.html
7131 03-23-10 13:16 tinyxml/docs/doxygen.css
1281 03-23-10 13:16 tinyxml/docs/doxygen.png
1548 03-23-10 13:16 tinyxml/docs/files.html
4052 03-23-10 13:16 tinyxml/docs/functions.html
4729 03-23-10 13:16 tinyxml/docs/functions_0x63.html
3362 03-23-10 13:16 tinyxml/docs/functions_0x64.html
4191 03-23-10 13:16 tinyxml/docs/functions_0x65.html
4063 03-23-10 13:16 tinyxml/docs/functions_0x66.html
3584 03-23-10 13:16 tinyxml/docs/functions_0x67.html
4078 03-23-10 13:16 tinyxml/docs/functions_0x69.html
3828 03-23-10 13:16 tinyxml/docs/functions_0x6c.html
4046 03-23-10 13:16 tinyxml/docs/functions_0x6e.html
3473 03-23-10 13:16 tinyxml/docs/functions_0x6f.html
4600 03-23-10 13:16 tinyxml/docs/functions_0x70.html
4139 03-23-10 13:16 tinyxml/docs/functions_0x71.html
3823 03-23-10 13:16 tinyxml/docs/functions_0x72.html
5492 03-23-10 13:16 tinyxml/docs/functions_0x73.html
6167 03-23-10 13:16 tinyxml/docs/functions_0x74.html
3462 03-23-10 13:16 tinyxml/docs/functions_0x75.html
5012 03-23-10 13:16 tinyxml/docs/functions_0x76.html
1932 03-23-10 13:16 tinyxml/docs/functions_enum.html
3977 03-23-10 13:16 tinyxml/docs/functions_func.html
4654 03-23-10 13:16 tinyxml/docs/functions_func_0x63.html
3287 03-23-10 13:16 tinyxml/docs/functions_func_0x64.html
4116 03-23-10 13:16 tinyxml/docs/functions_func_0x65.html
3988 03-23-10 13:16 tinyxml/docs/functions_func_0x66.html
3509 03-23-10 13:16 tinyxml/docs/functions_func_0x67.html
4003 03-23-10 13:16 tinyxml/docs/functions_func_0x69.html
3753 03-23-10 13:16 tinyxml/docs/functions_func_0x6c.html
3861 03-23-10 13:16 tinyxml/docs/functions_func_0x6e.html
4525 03-23-10 13:16 tinyxml/docs/functions_func_0x70.html
4064 03-23-10 13:16 tinyxml/docs/functions_func_0x71.html
3748 03-23-10 13:16 tinyxml/docs/functions_func_0x72.html
5417 03-23-10 13:16 tinyxml/docs/functions_func_0x73.html
6092 03-23-10 13:16 tinyxml/docs/functions_func_0x74.html
3277 03-23-10 13:16 tinyxml/docs/functions_func_0x75.html
4937 03-23-10 13:16 tinyxml/docs/functions_func_0x76.html
2063 03-23-10 13:16 tinyxml/docs/functions_rela.html
1929 03-23-10 13:16 tinyxml/docs/functions_vars.html
2343 03-23-10 13:16 tinyxml/docs/hierarchy.html
24431 03-23-10 13:16 tinyxml/docs/index.html
1215 03-23-10 13:16 tinyxml/docs/pages.html
35 03-23-10 13:16 tinyxml/docs/tab_b.gif
706 03-23-10 13:16 tinyxml/docs/tab_l.gif
2585 03-23-10 13:16 tinyxml/docs/tab_r.gif
1844 03-23-10 13:16 tinyxml/docs/tabs.css
28921 03-23-10 13:16 tinyxml/docs/tinystr_8h_source.html
203302 03-23-10 13:16 tinyxml/docs/tinyxml_8h_source.html
23226 03-23-10 13:16 tinyxml/docs/tutorial0.html
4457 03-23-10 13:16 tinyxml/echo.dsp
3502 03-23-10 13:16 tinyxml/Makefile
19831 03-23-10 13:16 tinyxml/readme.txt
2602 03-23-10 13:16 tinyxml/tinystr.cpp
8783 03-23-10 13:16 tinyxml/tinystr.h
36435 03-23-10 13:16 tinyxml/tinyxml.cpp
1315 03-23-10 13:16 tinyxml/tinyxml.dsw
64316 03-23-10 13:16 tinyxml/tinyxml.h
2535 03-23-10 13:16 tinyxml/tinyxml.sln
3475 03-23-10 13:16 tinyxml/tinyxml_lib.dsp
5676 03-23-10 13:16 tinyxml/tinyxml_lib.vcproj
1780 03-23-10 13:16 tinyxml/tinyxmlerror.cpp
37193 03-23-10 13:16 tinyxml/tinyxmlparser.cpp
3518 03-23-10 13:16 tinyxml/tinyxmlSTL.dsp
5656 03-23-10 13:16 tinyxml/tinyxmlSTL.vcproj
4189 03-23-10 13:16 tinyxml/tinyXmlTest.dsp
5336 03-23-10 13:16 tinyxml/tinyXmlTest.vcproj
4453 03-23-10 13:16 tinyxml/tinyXmlTestSTL.dsp
5447 03-23-10 13:16 tinyxml/tinyXmlTestSTL.vcproj
14812 03-23-10 13:16 tinyxml/utf8test.gif
690 03-23-10 13:16 tinyxml/utf8test.xml
692 03-23-10 13:16 tinyxml/utf8testverify.xml
41492 03-23-10 13:16 tinyxml/xmltest.cpp
-------- -------
1163603 113 files
[root@rhel55 c++]#
示例五 显示更详细的文件信息列表,包括压缩比率等
[root@rhel55 c++]# unzip -v tinyxml_2_6_1.zip
Archive: tinyxml_2_6_1.zip
Length Method Size Ratio Date Time CRC-32 Name
-------- ------ ------- ----- ---- ---- ------ ----
0 Stored 0 0% 03-23-10 13:16 00000000 tinyxml/
14898 Defl:X 6510 56% 03-23-10 13:16 32a9eb00 tinyxml/changes.txt
0 Stored 0 0% 03-23-10 13:16 00000000 tinyxml/docs/
3796 Defl:X 1116 71% 03-23-10 13:16 4bd0b7b5 tinyxml/docs/annotated.html
2809 Defl:X 847 70% 03-23-10 13:16 f63675f5 tinyxml/docs/classes.html
8304 Defl:X 1784 79% 03-23-10 13:16 6221073d tinyxml/docs/classTiXmlAttribute-members.html
15523 Defl:X 3172 80% 03-23-10 13:16 0c474e09 tinyxml/docs/classTiXmlAttribute.html
401 Defl:X 400 0% 03-23-10 13:16 8c97bdf8 tinyxml/docs/classTiXmlAttribute.png
3890 Defl:X 1154 70% 03-23-10 13:16 d184de48 tinyxml/docs/classTiXmlBase-members.html
16033 Defl:X 3879 76% 03-23-10 13:16 1984decc tinyxml/docs/classTiXmlBase.html
1470 Defl:X 1438 2% 03-23-10 13:16 3899f54a tinyxml/docs/classTiXmlBase.png
19288 Defl:X 3223 83% 03-23-10 13:16 aef8fe13 tinyxml/docs/classTiXmlComment-members.html
7737 Defl:X 2100 73% 03-23-10 13:16 1dad3de2 tinyxml/docs/classTiXmlComment.html
518 Stored 518 0% 03-23-10 13:16 f89010b1 tinyxml/docs/classTiXmlComment.png
20501 Defl:X 3385 84% 03-23-10 13:16 0d6b321b tinyxml/docs/classTiXmlDeclaration-members.html
10823 Defl:X 2633 76% 03-23-10 13:16 e282761f tinyxml/docs/classTiXmlDeclaration.html
557 Stored 557 0% 03-23-10 13:16 a84cb341 tinyxml/docs/classTiXmlDeclaration.png
24057 Defl:X 3881 84% 03-23-10 13:16 444474ce tinyxml/docs/classTiXmlDocument-members.html
30742 Defl:X 5233 83% 03-23-10 13:16 b686e382 tinyxml/docs/classTiXmlDocument.html
535 Defl:X 527 2% 03-23-10 13:16 e805b493 tinyxml/docs/classTiXmlDocument.png
23787 Defl:X 3811 84% 03-23-10 13:16 d500f7d3 tinyxml/docs/classTiXmlElement-members.html
30888 Defl:X 4771 85% 03-23-10 13:16 85cf72b3 tinyxml/docs/classTiXmlElement.html
514 Defl:X 488 5% 03-23-10 13:16 c63d39ed tinyxml/docs/classTiXmlElement.png
5695 Defl:X 1285 77% 03-23-10 13:16 c79878e4 tinyxml/docs/classTiXmlHandle-members.html
25214 Defl:X 3737 85% 03-23-10 13:16 ab50ac54 tinyxml/docs/classTiXmlHandle.html
18771 Defl:X 3147 83% 03-23-10 13:16 1f9f07b9 tinyxml/docs/classTiXmlNode-members.html
60709 Defl:X 8578 86% 03-23-10 13:16 5079c120 tinyxml/docs/classTiXmlNode.html
1303 Defl:X 1245 5% 03-23-10 13:16 cd1dc9f5 tinyxml/docs/classTiXmlNode.png
5515 Defl:X 1313 76% 03-23-10 13:16 37f34eb0 tinyxml/docs/classTiXmlPrinter-members.html
14684 Defl:X 3041 79% 03-23-10 13:16 6f2a49a7 tinyxml/docs/classTiXmlPrinter.html
380 Defl:X 377 1% 03-23-10 13:16 277c06d3 tinyxml/docs/classTiXmlPrinter.png
19711 Defl:X 3302 83% 03-23-10 13:16 b5d7be0e tinyxml/docs/classTiXmlText-members.html
10566 Defl:X 2689 75% 03-23-10 13:16 53bcfa73 tinyxml/docs/classTiXmlText.html
485 Stored 485 0% 03-23-10 13:16 6e78480b tinyxml/docs/classTiXmlText.png
18804 Defl:X 3163 83% 03-23-10 13:16 b5da9c89 tinyxml/docs/classTiXmlUnknown-members.html
7013 Defl:X 2107 70% 03-23-10 13:16 9b4816cc tinyxml/docs/classTiXmlUnknown.html
521 Defl:X 520 0% 03-23-10 13:16 84b4f6b9 tinyxml/docs/classTiXmlUnknown.png
3643 Defl:X 1018 72% 03-23-10 13:16 89443ea5 tinyxml/docs/classTiXmlVisitor-members.html
8524 Defl:X 2180 74% 03-23-10 13:16 b8f1d221 tinyxml/docs/classTiXmlVisitor.html
386 Defl:X 385 0% 03-23-10 13:16 a25913cb tinyxml/docs/classTiXmlVisitor.png
2622 Defl:X 970 63% 03-23-10 13:16 d26502e1 tinyxml/docs/deprecated.html
7131 Defl:X 2058 71% 03-23-10 13:16 3f275ea9 tinyxml/docs/doxygen.css
1281 Defl:X 1208 6% 03-23-10 13:16 61f5966b tinyxml/docs/doxygen.png
1548 Defl:X 656 58% 03-23-10 13:16 37e5e107 tinyxml/docs/files.html
4052 Defl:X 1173 71% 03-23-10 13:16 efac1257 tinyxml/docs/functions.html
4729 Defl:X 1398 70% 03-23-10 13:16 9c56c519 tinyxml/docs/functions_0x63.html
3362 Defl:X 929 72% 03-23-10 13:16 8f96a8a8 tinyxml/docs/functions_0x64.html
4191 Defl:X 1169 72% 03-23-10 13:16 e0e89f57 tinyxml/docs/functions_0x65.html
4063 Defl:X 1153 72% 03-23-10 13:16 67a42520 tinyxml/docs/functions_0x66.html
3584 Defl:X 1011 72% 03-23-10 13:16 76fd776f tinyxml/docs/functions_0x67.html
4078 Defl:X 1170 71% 03-23-10 13:16 44e00503 tinyxml/docs/functions_0x69.html
3828 Defl:X 1093 71% 03-23-10 13:16 f830b80d tinyxml/docs/functions_0x6c.html
4046 Defl:X 1136 72% 03-23-10 13:16 9565bb3f tinyxml/docs/functions_0x6e.html
3473 Defl:X 959 72% 03-23-10 13:16 489db97e tinyxml/docs/functions_0x6f.html
4600 Defl:X 1340 71% 03-23-10 13:16 c970597f tinyxml/docs/functions_0x70.html
4139 Defl:X 1139 73% 03-23-10 13:16 3249d80a tinyxml/docs/functions_0x71.html
3823 Defl:X 1088 72% 03-23-10 13:16 e4f5c05e tinyxml/docs/functions_0x72.html
5492 Defl:X 1565 72% 03-23-10 13:16 c4041eb1 tinyxml/docs/functions_0x73.html
6167 Defl:X 1742 72% 03-23-10 13:16 f2e5d279 tinyxml/docs/functions_0x74.html
3462 Defl:X 967 72% 03-23-10 13:16 1c9b85b1 tinyxml/docs/functions_0x75.html
5012 Defl:X 1417 72% 03-23-10 13:16 474ff720 tinyxml/docs/functions_0x76.html
1932 Defl:X 695 64% 03-23-10 13:16 17f18324 tinyxml/docs/functions_enum.html
3977 Defl:X 1121 72% 03-23-10 13:16 2c91ef74 tinyxml/docs/functions_func.html
4654 Defl:X 1343 71% 03-23-10 13:16 351531b3 tinyxml/docs/functions_func_0x63.html
3287 Defl:X 872 74% 03-23-10 13:16 d8829ae3 tinyxml/docs/functions_func_0x64.html
4116 Defl:X 1118 73% 03-23-10 13:16 68896775 tinyxml/docs/functions_func_0x65.html
3988 Defl:X 1099 72% 03-23-10 13:16 2eeb5fdf tinyxml/docs/functions_func_0x66.html
3509 Defl:X 962 73% 03-23-10 13:16 8548d1af tinyxml/docs/functions_func_0x67.html
4003 Defl:X 1117 72% 03-23-10 13:16 aecae710 tinyxml/docs/functions_func_0x69.html
3753 Defl:X 1041 72% 03-23-10 13:16 34eee051 tinyxml/docs/functions_func_0x6c.html
3861 Defl:X 1053 73% 03-23-10 13:16 d3850bd8 tinyxml/docs/functions_func_0x6e.html
4525 Defl:X 1288 72% 03-23-10 13:16 d215c72b tinyxml/docs/functions_func_0x70.html
4064 Defl:X 1085 73% 03-23-10 13:16 97d683c4 tinyxml/docs/functions_func_0x71.html
3748 Defl:X 1035 72% 03-23-10 13:16 76b9a0f1 tinyxml/docs/functions_func_0x72.html
5417 Defl:X 1513 72% 03-23-10 13:16 5be71089 tinyxml/docs/functions_func_0x73.html
6092 Defl:X 1687 72% 03-23-10 13:16 18798f4c tinyxml/docs/functions_func_0x74.html
3277 Defl:X 864 74% 03-23-10 13:16 ac6292bd tinyxml/docs/functions_func_0x75.html
4937 Defl:X 1361 72% 03-23-10 13:16 2d50c7fc tinyxml/docs/functions_func_0x76.html
2063 Defl:X 744 64% 03-23-10 13:16 9144fcfe tinyxml/docs/functions_rela.html
1929 Defl:X 699 64% 03-23-10 13:16 181b3b44 tinyxml/docs/functions_vars.html
2343 Defl:X 770 67% 03-23-10 13:16 2a9a3b46 tinyxml/docs/hierarchy.html
24431 Defl:X 8844 64% 03-23-10 13:16 8d8338ce tinyxml/docs/index.html
1215 Defl:X 579 52% 03-23-10 13:16 13b766be tinyxml/docs/pages.html
35 Defl:X 33 6% 03-23-10 13:16 423d30cb tinyxml/docs/tab_b.gif
706 Defl:X 701 1% 03-23-10 13:16 f40065a7 tinyxml/docs/tab_l.gif
2585 Defl:X 2573 1% 03-23-10 13:16 e25bca26 tinyxml/docs/tab_r.gif
1844 Defl:X 614 67% 03-23-10 13:16 d5ca0949 tinyxml/docs/tabs.css
28921 Defl:X 5996 79% 03-23-10 13:16 6f4e2aaa tinyxml/docs/tinystr_8h_source.html
203302 Defl:X 27378 87% 03-23-10 13:16 d45b3393 tinyxml/docs/tinyxml_8h_source.html
23226 Defl:X 6479 72% 03-23-10 13:16 60f240f7 tinyxml/docs/tutorial0.html
4457 Defl:X 1034 77% 03-23-10 13:16 f7d161c6 tinyxml/echo.dsp
3502 Defl:X 927 74% 03-23-10 13:16 f4c914ab tinyxml/Makefile
19831 Defl:X 8023 60% 03-23-10 13:16 2de10ec5 tinyxml/readme.txt
2602 Defl:X 1049 60% 03-23-10 13:16 c6eefc0b tinyxml/tinystr.cpp
8783 Defl:X 3014 66% 03-23-10 13:16 a12eaf4d tinyxml/tinystr.h
36435 Defl:X 7838 79% 03-23-10 13:16 d5ee9686 tinyxml/tinyxml.cpp
1315 Defl:X 289 78% 03-23-10 13:16 ff190c78 tinyxml/tinyxml.dsw
64316 Defl:X 16285 75% 03-23-10 13:16 3c44527b tinyxml/tinyxml.h
2535 Defl:X 576 77% 03-23-10 13:16 fa79f489 tinyxml/tinyxml.sln
3475 Defl:X 1001 71% 03-23-10 13:16 e4f79816 tinyxml/tinyxml_lib.dsp
5676 Defl:X 1172 79% 03-23-10 13:16 1d839803 tinyxml/tinyxml_lib.vcproj
1780 Defl:X 911 49% 03-23-10 13:16 5f74e68a tinyxml/tinyxmlerror.cpp
37193 Defl:X 9915 73% 03-23-10 13:16 026ceb3d tinyxml/tinyxmlparser.cpp
3518 Defl:X 981 72% 03-23-10 13:16 9997529a tinyxml/tinyxmlSTL.dsp
5656 Defl:X 1134 80% 03-23-10 13:16 c9d38a10 tinyxml/tinyxmlSTL.vcproj
4189 Defl:X 1022 76% 03-23-10 13:16 e3220707 tinyxml/tinyXmlTest.dsp
5336 Defl:X 1233 77% 03-23-10 13:16 5c16b425 tinyxml/tinyXmlTest.vcproj
4453 Defl:X 1058 76% 03-23-10 13:16 eae3e727 tinyxml/tinyXmlTestSTL.dsp
5447 Defl:X 1251 77% 03-23-10 13:16 874e8072 tinyxml/tinyXmlTestSTL.vcproj
14812 Defl:X 14778 0% 03-23-10 13:16 fbc32be6 tinyxml/utf8test.gif
690 Defl:X 437 37% 03-23-10 13:16 07f6f1c1 tinyxml/utf8test.xml
692 Defl:X 435 37% 03-23-10 13:16 12b9019f tinyxml/utf8testverify.xml
41492 Defl:X 10283 75% 03-23-10 13:16 6053a3ef tinyxml/xmltest.cpp
-------- ------- --- -------
1163603 274650 76% 113 files
[root@rhel55 c++]#
问题思考
暂无。
相关资料
【1】Linux自由空间 unzip命令,linux下解压zip
发表评论
-
在Linux用tar归档压缩文件时忽略某些文件和目录
2013-02-01 10:19 17055在Linux下,常用tar对文 ... -
使用nmap扫描服务器端口的一次操作
2012-11-01 17:00 15143使用nmap扫描服务器端口的一次操作 本文来自:http ... -
我使用过的Linux命令之wget - ooo
2011-09-14 13:10 0我使用过的Linux命令之wg ... -
推荐一篇学习Vim使用的好文:酷壳 - 简明 Vim 练级攻略
2011-09-09 12:53 9151简明 Vim 练级攻略 http://coolshell.c ... -
推荐一篇学习Vim使用的好文:酷壳 - 简明 Vim 练级攻略
2011-09-09 12:49 1简明 Vim 练级攻略 http://coolshell.c ... -
我使用过的Linux命令之:(冒号) - 啥也不做(除了……)
2011-08-29 13:18 12104我使用过的Linux命令之: ... -
我使用过的Linux命令之date - 显示、修改系统日期时间
2011-08-25 09:21 41986我使用过的Linux命令之da ... -
我使用过的Linux命令之declare - 声明shell变量(不知道没关系、知道了就更好的内建命令)
2011-08-16 09:22 21836我使用过的Linux命令之declare - 声明shell变 ... -
我使用过的Linux命令之alias - 设置命令的别名,让 Linux 命令更简练
2011-08-11 09:31 28831我使用过的Linux命令之alias - 设置命令的别名,让 ... -
我使用过的Linux命令之ar - 创建静态库.a文件
2011-08-08 10:40 51935我使用过的Linux命令之ar - 创建静态库.a文件 本 ... -
我使用过的Linux命令之crontab - 设置例行任务(类似于Windows中的任务计划)
2011-08-04 22:26 9754我使用过的Linux命令之crontab - 设置例行任务(类 ... -
我使用过的Linux命令之chmod - 改变文件/目录的访问权限
2011-08-03 21:33 10709我使用过的Linux命令之chmod - 改变文件/目录的访问 ... -
我使用过的Linux命令之export - 设置或显示环境变量
2011-08-02 19:55 25442我使用过的Linux命令之export - 设置或显示环境变量 ... -
我使用过的Linux命令之wc - 统计文件行数、单词数或字节数
2011-07-26 10:50 29020我使用过的Linux命令之wc - 统计文件行数、单词数或字节 ... -
我使用过的Linux命令之groupdel - 删除群组
2011-07-22 22:13 9695我使用过的Linux命令之gr ... -
我使用过的Linux命令之ifconfig - 网络配置命令
2011-07-21 20:43 60560我使用过的Linux命令之ifconfig - 网络配置命令 ... -
我使用过的Linux命令之ll - 列出文件/目录的详细信息
2011-07-20 21:22 7210我使用过的Linux命令之ll ... -
我使用过的Linux命令之mkdir - 创建目录
2011-07-20 20:58 13690我使用过的Linux命令之mkdir - 创建目录 本文链 ... -
我使用过的Linux命令之perror - 解释错误代码
2011-07-18 20:29 25084我使用过的Linux命令之perror - 解释错误代码 ... -
我使用过的Linux命令之ping - 测试与目标主机的连通性
2011-07-16 10:46 26617我使用过的Linux命令之ping - 测试与目标主机的连通性 ...
相关推荐
一旦安装完成,我们就可以在终端中直接使用`unzip`命令来解压ZIP文件了。 unzip的基本用法非常简单。例如,如果你有一个名为"example.zip"的ZIP文件,你可以在其所在目录下运行: ```bash unzip example.zip ``` ...
在Linux操作系统中,`unzip`命令是用于解压ZIP格式的压缩文件的重要工具。标题中的"unzip-5.* Linux安装包"指的是版本号为5.x(这里具体为5.5.2)的`unzip`软件包,它适用于Linux环境,特别提及了32位(i386)和64位...
在Linux环境中,unzip命令的使用非常简单,例如,`unzip file.zip`即可解压名为file.zip的文件。它还支持多种选项,如`-d`指定解压目录,`-l`列出压缩包内容,`-t`测试压缩包是否完整等。此外,unzip并不处理其他...
unzip命令用于解压缩由zip命令压缩的“.zip”压缩包。 使用说明: a.上传unzip文件到linux b.例如将压缩文件text.zip在当前目录下解压缩: unzip test.zip c.将压缩文件text.zip在指定目录/tmp下解压缩,如果已有...
解压缩ZIP文件则使用`unzip`命令,例如`unzip example.zip`会将压缩文件中的内容解压到当前目录。如果希望自定义解压位置,可以加上路径,如`unzip example.zip -d C:\Users\Username\Documents`。 除了命令行工具...
在Linux操作系统中,尽管tar命令通常用于处理归档文件,如.tar或.tar.gz,但Linux确实内置了unzip命令,专门用于处理ZIP格式的压缩文件。这种格式在Windows环境中非常常见,因此对于需要在Linux环境下处理来自...
如果你如法使用unzip命令解压.zip文件,可能是你没有安装unzip软件,下面是安装方法 命令: yum list | grep zip/unzip #获取安装列表 安装命令: yum install zip #提示输入时,请输入y; 安装命令:yum install ...
在Linux操作系统中,`unzip`是一个非常实用的命令行工具,主要用于解压缩`.zip`格式的文件。本文将深入探讨`unzip`工具的基本使用、功能特性以及一些常见的操作实例,帮助您全面理解如何在Linux环境下有效地管理和...
`zip`和`unzip`命令用于处理.zip格式的压缩文件,而`rpm`则是Linux下用来安装、升级、查询和卸载软件包的标准工具,尤其在Red Hat Enterprise Linux (RHEL)及其衍生系统如CentOS中广泛使用。下面我们将详细探讨这些...
在日常的跨平台文件传输中,我们经常遇到一个问题:在Windows环境下压缩的ZIP文件,在Linux系统下使用`unzip`命令解压缩时无法识别。这主要是由于不同操作系统对文件编码和压缩格式的理解差异造成的。本篇文章将深入...
linux zip unzip RPM安装包,亲测可用 用于解压war包,zip包 内含unzip-6.0-5.el6.x86_64.rpm zip-3.0-1.el6_7.1.x86_64.rpm
总结,了解和掌握Linux下的zip和unzip命令是系统管理员必备的技能之一,无论是在有网络还是无网络的环境下,都能方便地进行文件的压缩和解压操作。对于内网环境,离线安装方法尤为重要,确保了在没有外界帮助的情况...
在Linux操作系统中,`unzip`命令用于解压缩`.zip`格式的压缩文件。然而,有时在新安装或精简版的Linux系统中,这个命令可能并未预装,导致用户在尝试解压ZIP文件时遇到“unzip命令不存在”的错误。解决这个问题通常...
“unzip-5.51-1.exe”是该工具在Windows操作系统下的可执行文件,这意味着即便是在非Unix/Linux环境中,用户也可以通过这个程序来解压zip格式的文件。这对于跨平台工作或者在没有图形界面工具的情况下,显得尤为重要...
在Linux系统中,数据压缩与解压缩是日常...总之,无论是压缩还是解压缩文件,掌握`zip`和`unzip`命令的使用方法对于Linux用户来说都是至关重要的。通过合理利用这些命令的选项,可以极大地提高工作效率,优化资源管理。
unzip 工具专门用于解压 .zip 文件,支持多种由 zip 创建的压缩格式。本文提供的 unzip-6.0-19.el7.x86_64.rpm 安装包为6.0版本,同样适用于 CentOS 7 64位系统。安装步骤与 zip 一致,均使用 rpm -ivh 命令,这确保...
`unzip`命令则用于解压ZIP格式的文件。当你下载了一个ZIP文件,如`example.zip`,并希望将其内容解压到当前目录,可以使用如下命令: ```bash unzip example.zip ``` RPM安装包则是Linux系统中安装、更新和卸载...
- `unzip`命令用于解压缩ZIP文件。例如,解压`my_archive.zip`到当前目录,输入: ``` unzip my_archive.zip ``` - 如果你想解压到特定目录,例如`C:\Extracted\`,则: ``` unzip my_archive.zip -d C:\...
在Linux环境中,当我们尝试使用`unzip`命令解压包含中文文件名的压缩包时,经常会出现中文乱码的问题。这是因为`unzip`程序在处理非ASCII字符时,可能会使用其内部默认的编码方式,而这个编码方式并不支持中文字符集...
在Linux系统上,一般自带zip和unzip命令。但是在Windows下面没有,不过只要加入这两个命令在当前目录/System32/SystemWow/Windows环境变量下,就可以愉快的使用。...解压缩命令:unzip -o aaa.zip (将aaa.zip解压缩)