<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></title> 
<link>http://jackxiang.com/index.php</link> 
<description><![CDATA[赢在IT，Playin' with IT,Focus on Killer Application,Marketing Meets Technology.]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></copyright>
<item>
<link>http://jackxiang.com/post//</link>
<title><![CDATA[[实践OK]gunzip 和 unzip 解压文件到指定的目录，unzip jmeter.zip -d /usr/local/]]></title> 
<author>jack &lt;xdy108@126.com&gt;</author>
<category><![CDATA[WEB2.0]]></category>
<pubDate>Wed, 25 Jul 2012 12:31:51 +0000</pubDate> 
<guid>http://jackxiang.com/post//</guid> 
<description>
<![CDATA[ 
	#因gunzip -f *.tar.gz =&gt;*.tar 会删除*.tar.gz所以不能重新再去gunzip的标志位。<br/>gunzip -f <br/>gunzip -f -c<br/> -c --stdout&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;write on standard output, keep original files unchanged<br/> -f --force&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; force overwrite of output file and compress links<br/>原来的文件则没有了：<br/># gunzip test.txt.gz <br/>它会将文件解压缩为文件 test.txt，原来的文件则没有了，为了保留原有的文件，我们可以加上 -c 选项并利用 linux 的重定向 <br/><br/><br/>Linux 常用的压缩命令有 gzip 和 zip，两种压缩包的结尾不同：zip 压缩的后文件是 *.zip ，而 gzip 压缩后的文件 *.gz <br/>相应的解压缩命令则是 gunzip 和 unzip <br/><br/>gzip 命令： <br/># gzip test.txt <br/>它会将文件压缩为文件 test.txt.gz，原来的文件则没有了，解压缩也一样 <br/><br/># gunzip test.txt.gz <br/>它会将文件解压缩为文件 test.txt，原来的文件则没有了，为了保留原有的文件，我们可以加上 -c 选项并利用 linux 的重定向 <br/><br/># gzip -c test.txt &gt; /root/test.gz <br/>这样不但可以将原有的文件保留，而且可以将压缩包放到任何目录中，解压缩也一样 <br/><br/># gunzip -c /root/test.gz &gt; ./test.txt <br/><br/><br/>zip 命令： <br/># zip test.zip test.txt <br/>它会将 test.txt 文件压缩为 test.zip ，当然也可以指定压缩包的目录，例如 /root/test.zip <br/><br/># unzip test.zip <br/>它会默认将文件解压到当前目录，如果要解压到指定目录，可以加上 -d 选项 <br/><br/># unzip test.zip -d /root/ 
]]>
</description>
</item><item>
<link>http://jackxiang.com/post//#blogcomment</link>
<title><![CDATA[[评论] [实践OK]gunzip 和 unzip 解压文件到指定的目录，unzip jmeter.zip -d /usr/local/]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://jackxiang.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>