liux之我用过的zip解压命令
用途说明
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++]#
liux之我用过的zip解压命令的更多相关文章
- centos7 tar.gz zip 解压命令
tar负责打包,gzip负责压缩 tar -c: 建立压缩档案 -x:解压 -t:查看内容 -r:向压缩归档文件末尾追加文件 -u:更新原压缩包中的文件 这五个是独立的命令,压缩解压都要用到其中一个, ...
- linux .zip 解压命令集
zip: 压缩: zip [-AcdDfFghjJKlLmoqrSTuvVwXyz$][-b <工作目录>][-ll][-n <字尾字符串>][-t <日期时间>] ...
- CentOS7下zip解压和unzip压缩文件
1.安装zip.unzip应用. yum install zip unzip
- MySQL For Windows Zip解压版安装
前言 Windows 下 MySQL 有msi和zip解压安装版两种,而zip版只需解压并做简单配置后就能使用,我个人比较喜欢这种方式. 注意我们这里说的MySQL是指MySQL服务器,有很多初学的同 ...
- linux下tar、zip等压缩、解压命令
.tar解包:tar xvf FileName.tar打包:tar cvf FileName.tar DirName(注:tar是打包,不是压缩!)-------------------------- ...
- 解决ubuntu中zip解压的中文乱码问题
转自解决ubuntu中zip解压的中文乱码问题 在我的ubuntu12.10中,发现显示中文基本都是正常的,只有在解压windows传过来的zip文件时,才会出现乱码.所以,我用另一个方法解决中文乱码 ...
- liunx之zip格式的解压命令
zip -r myfile.zip ./* 将当前目录下的所有文件和文件夹全部压缩成myfile.zip文件,-r表示递归压缩子目录下所有文件. 2.unzip unzip -o -d /home/s ...
- JAVA zip解压 MALFORMED 错误
最近在在使用zip 解压时,使用JDK1.7及以上版本在解压时,某些文件会报异常 Exception in thread "main" java.lang.IllegalArgum ...
- windows下tomcat zip解压版安装方法
下面记录一下在win7(32位)系统下,安装zip解压版的方法: 一.下载zip压缩包 地址:http://tomcat.apache.org/download-80.cgi 二.解压 我把解压包解压 ...
随机推荐
- ADO.NET EF实体框架
ADO.NET 实体框架概述 随着.NET Framework 3.5 SP1和Visual Studio 2008 SP1的正式发布.ADO.NET 实体框架正式来到开发人员的面前,它使开发人员可以 ...
- Chp14: Java
1.finally keyword: finally keyword is used in association with a try/catch block and guarantees that ...
- SPOJ 3643 /BNUOJ 21860 Traffic Network
题意:现在已有m条单向路,问在给你的k条双向路中选择一条,使得s到t的距离最短 思路:设双向路两端点为a,b;长度为c. s到t的有三种情况: 1:原本s到t的路径 2:从s到a,a到b,b再到t的路 ...
- **PHP随机数算法
<?php $tmp = range(1,30);print_r(array_rand($tmp,10));?> 输出: Array( [0] => 6 [1] => 8 [2 ...
- hdu 1002 A+B
题目:http://acm.hdu.edu.cn/showproblem.php?pid=1002 复习一下大数 模板: #include <stdio.h> #include <s ...
- 使用CXF与Spring集成实现RESTFul WebService
以下引用与网络中!!! 一种软件架构风格,设计风格而不是标准,只是提供了一组设计原则和约束条件.它主要用于客户端和服务器交互类的软件.基于这个风格设计的软件可以更简洁,更有层次,更易于实现缓存 ...
- SpringMVC学习总结(六)——SpringMVC文件上传例子(2)
基本的SpringMVC的搭建在我的上一篇文章里已经写过了,这篇文章主要说明一下使用SpringMVC进行表单上的文件上传以及多个文件同时上传的不同方法 一.配置文件: SpringMVC 用的是 的 ...
- switch… case 语句的用法
switch… case 语句的用法 public class Test7 { public static void main(String[] args) { int i=5; switch(i ...
- python各种类型转换-int,str,char,float,ord,hex,oct等
int(x [,base ]) 将x转换为一个整数 long(x [,base ]) 将x转换为一个长整数 float(x ) 将x转换到 ...
- Git教程之版本回退(4)
现在,我们已经学会了修改文件,然后把修改提交到Git版本库,现在再次修改readme.txt文件如下: