<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>东东有礼 &#187; tar</title>
	<atom:link href="http://leedd.com/tag/tar/feed/" rel="self" type="application/rss+xml" />
	<link>http://leedd.com</link>
	<description>东东有礼的互联网观察</description>
	<lastBuildDate>Thu, 10 May 2012 16:11:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>在路上</title>
		<link>http://leedd.com/2010/06/on-the-way/</link>
		<comments>http://leedd.com/2010/06/on-the-way/#comments</comments>
		<pubDate>Sun, 06 Jun 2010 16:21:07 +0000</pubDate>
		<dc:creator>东东有礼</dc:creator>
				<category><![CDATA[互联网]]></category>
		<category><![CDATA[IT]]></category>
		<category><![CDATA[tar]]></category>
		<category><![CDATA[五道口]]></category>

		<guid isPermaLink="false">http://leedd.com/?p=1186</guid>
		<description><![CDATA[今夜我又走进风雨，放弃了安稳的环境，我选择了拼搏，因为我需要成长。

从大学到现在无数次的选择走进风...]]></description>
			<content:encoded><![CDATA[<p>今夜我又走进风雨，放弃了安稳的环境，我选择了拼搏，因为我需要成长。</p>
<p>从大学到现在无数次的选择走进风雨，我接受成长的洗礼。</p>
<p>五道口的夜，繁华，只是在窗外，抬头就是sohu网络大厦，也算是五道口的地标吧，target  it！</p>
<p>如果选择远方，就只顾风雨兼程。</p>
<p>感谢你、感谢我自己</p>
]]></content:encoded>
			<wfw:commentRss>http://leedd.com/2010/06/on-the-way/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>今天Google pr更新</title>
		<link>http://leedd.com/2010/04/google-pr-update/</link>
		<comments>http://leedd.com/2010/04/google-pr-update/#comments</comments>
		<pubDate>Sat, 03 Apr 2010 12:49:15 +0000</pubDate>
		<dc:creator>东东有礼</dc:creator>
				<category><![CDATA[互联网]]></category>
		<category><![CDATA[build]]></category>
		<category><![CDATA[c语言]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[lee.spec]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[PR]]></category>
		<category><![CDATA[rpmbuild]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[spec]]></category>
		<category><![CDATA[tar]]></category>
		<category><![CDATA[tar.bz2]]></category>
		<category><![CDATA[tar.gz]]></category>
		<category><![CDATA[xpud]]></category>
		<category><![CDATA[本地化]]></category>

		<guid isPermaLink="false">http://leedd.com/?p=1018</guid>
		<description><![CDATA[今天google的 pr更新，在这个推出的时刻至少稳定了部分站长的心，不用担心pr清零等问题

沉思小屋的主页p...]]></description>
			<content:encoded><![CDATA[<p>今天google的 pr更新，在这个时刻gg正常更新至少稳定了部分站长的心，不用担心pr清零等问题</p>
<p><strong>沉思小屋的主页pr依然保持在3 ，不过部分内页权重有些提升，部分pr2的内页如下：</strong></p>
<p><strong><a href="http://leedd.com/html/abs-3.9.1/">高级Bash脚本编程指南 </a></strong></p>
<p><strong><a href="http://leedd.com/2010/02/taobao-servies-call/">淘宝卖家维权电话</a></strong></p>
<p><strong>Linux shell介绍的 <a name="COMPARISON-OPS" href="http://leedd.com/html/abs-3.9.1/comparison-ops.html">其他比较操作符</a></strong></p>
<p><a href="http://leedd.com/2010/03/linux-c-i18n-l10n-xgettext-msgfmt-rpmbuild/"><strong>Linux下C语言的本地化／国际化实现</strong></a> （<a href="http://leedd.com/2010/03/linux-c-i18n-l10n-xgettext-msgfmt-rpmbuild/"><strong>点击查看</strong></a>）</p>
<p><a href="http://leedd.com/2010/03/xpud-linux-system-guide/"><strong>接入云端：轻量级Linux系统xpud</strong></a></p>
<p>遗憾的是下面几个链接只有pr1</p>
<p><a href="http://leedd.com/2010/01/linux-tar-tar-gz-tar-bz2/">Linux下创建与解压tar, tar.gz和tar.bz2文件及压缩率对比</a></p>
<p><a href="http://leedd.com/2009/12/mib-and-mb/">电脑硬盘统计中的MiB和MB的区别</a></p>
<p><strong><a href="http://leedd.com/2009/07/rpmbuild/">在linux下rpmbuild文件lee.spec成功</a></strong> （最早是pr2）</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-其它暂时没有统计</p>
]]></content:encoded>
			<wfw:commentRss>http://leedd.com/2010/04/google-pr-update/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>“云科技”三位创始人要转让运营权与域名</title>
		<link>http://leedd.com/2010/01/yun-ke-ji-com/</link>
		<comments>http://leedd.com/2010/01/yun-ke-ji-com/#comments</comments>
		<pubDate>Tue, 26 Jan 2010 12:05:28 +0000</pubDate>
		<dc:creator>东东有礼</dc:creator>
				<category><![CDATA[学习笔记]]></category>
		<category><![CDATA[IT]]></category>
		<category><![CDATA[tar]]></category>
		<category><![CDATA[互联网]]></category>
		<category><![CDATA[域名]]></category>
		<category><![CDATA[思考]]></category>
		<category><![CDATA[科技]]></category>

		<guid isPermaLink="false">http://leedd.com/?p=889</guid>
		<description><![CDATA[今天上网，看自己的Reader订阅，一条消息令我有点吃惊，然后是淡定，但是心情很复杂，那就是多人科技博客--...]]></description>
			<content:encoded><![CDATA[<p>今天上午，在公司看到自己Reader里的一条Feed令我有点吃惊，然后是淡定，但是心情很复杂。那就是多人科技博客&#8212;&#8211;<strong>云科技（www.yunkeji.com）</strong>的三位创始人因为“<strong>各自工作原因</strong>”要<strong>转让云科技的运营权与域名权</strong>。但是依然作为“<strong>合伙人博客</strong>”对云科技做贡献。<span id="more-889"></span></p>
<p><strong>心情有点复杂</strong>，也值得我<strong>思考</strong>，<span style="color: #0000ff;">心情复杂是</span>今后我们还能看到那么高质量的文章么？即使我们今后还能看到高质量的云科技的文章，但是创始人的运营权变更也让我们很遗憾，让我们得思考？ <span style="color: #0000ff;">思考在中国博客媒体化的道理是否可行，需要经历哪些道路</span>？（可能云科技是个个案，虽然只是转移“运营权与域名权”，但是三位创始人依然供稿）多人博客到底有没有“钱途”与“前途”。当草根的站长辛苦确得不到回报的时候我们还能走多远，因为之前我一直推崇于<span style="color: #0000ff;">多人合作模式的博客。</span>甚至想自己做一个这样的科技博客。汇集大家的智慧，发表我们的声音，影响一定人群，也相当于Web3.0情况下的“媒体”。国外有很好的科技博客的先例（<a href="http://www.techcrunch.com/" target="_blank">TechCrunch</a> 等博客，可以GG一下）。但是苦于自己暂时没有那么强的写作能力和没有合适的人选，在此做个广告，“热情”、“兼职”、对it互联网产品“狂热”的你可以跟我联系（^_^）.</p>
<p><strong>模式需要探索，虽然前路久远。但是我们<span style="color: #0000ff;">在路上，坚定的前行</span>。</strong></p>
<p><strong>云科技的原文声明请移步：<a href="http://www.yunkeji.com/?p=6638">http://www.yunkeji.com/?p=6638</a></strong></p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-我是转载分割线&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p><img title="xin_11303060209398752019515" src="http://www.yunkeji.com/wp-content/uploads/2010/01/xin_11303060209398752019515.jpg" alt="xin_11303060209398752019515" width="360" height="309" /></p>
]]></content:encoded>
			<wfw:commentRss>http://leedd.com/2010/01/yun-ke-ji-com/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>［转贴］项目经理必读：142M的项目管理PMP认证考试资料免费分享</title>
		<link>http://leedd.com/2010/01/142m-pmp-from-bookzh-com/</link>
		<comments>http://leedd.com/2010/01/142m-pmp-from-bookzh-com/#comments</comments>
		<pubDate>Wed, 20 Jan 2010 04:44:35 +0000</pubDate>
		<dc:creator>东东有礼</dc:creator>
				<category><![CDATA[学习笔记]]></category>
		<category><![CDATA[FTP]]></category>
		<category><![CDATA[gmail]]></category>
		<category><![CDATA[IT]]></category>
		<category><![CDATA[PR]]></category>
		<category><![CDATA[tar]]></category>
		<category><![CDATA[工具]]></category>
		<category><![CDATA[计划]]></category>

		<guid isPermaLink="false">http://leedd.com/?p=868</guid>
		<description><![CDATA[项目经理必读：142M的项目管理PMP认证考试资料免费分享
萧秋水的同事看了我们的新书《超越对手-大项目售前...]]></description>
			<content:encoded><![CDATA[<h2>项目经理必读：142M的项目管理PMP认证考试资料免费分享</h2>
<p><a href="http://www.xiaoqiushui.com/" target="_blank">萧秋水</a>的同事看了我们的新书《<a href="http://www.70man.com/?p=3148" target="_self">超越对手-大项目售前售后的30种实战技巧</a>》，认为写得很好，对他工作帮助很大，而且他觉得我们的分享传播是一种很好的推广形式，萧秋水的同事不但愿意给我们宣传，还主动提供了他多年PMP学习过程中整理的大礼包，让我们分享给所有的<a href="http://www.70man.com/" target="_blank">项目经理</a>，希望对他们将来学习项目管理，特别是PMP会非常有帮助。</p>
<p>所以这里先要代替全体传播受益者特别感谢秋水的金蝶同事的无私奉献。</p>
<p><span id="more-868"></span></p>
<p>先把他的资料清单列出来吧，<a href="http://www.70man.com/" target="_blank">秋叶</a>看过，确实非常有吸引力：</p>
<p>├7506-PMP考试精要（2004版）.pdf<br />
├PMI道德和专业行为规范.doc<br />
├图解项目管理（2004版）（V8）（上）.pdf<br />
├图解项目管理（2004版）（V8）（下）.pdf<br />
├如何准备PMP考试.pdf<br />
├带标注的PMBOK中文版.pdf<br />
├深入浅出PMP.项目管理.pdf<br />
├Pmp申报<br />
│├PDU申请实践.doc<br />
│├PMI网站在线申请指南.doc<br />
│├关于申报PDU.doc<br />
│├英文申请表模版.doc<br />
│├中文申请表.docx<br />
│├项目经验填报模板.xlsx<br />
│├PMP报名指南.doc<br />
├模拟考试<br />
│├模拟试题1自测 V4.0<br />
││├A00–封面.doc<br />
││├A1–PMP模拟试题1（自测）.doc<br />
││├A2–自测答题纸.doc<br />
││├A3–自测参考答案.doc<br />
│├模拟试题2全真 V4.0<br />
││├B00 –封面.doc<br />
││├B1–PMP模拟试题3（全真）.doc<br />
││├B2–全真答题纸.doc<br />
││├B3–全真参考答案.doc<br />
│├模拟试题3经典 V4.0<br />
││├C00 –封面.doc<br />
││├C1–PMP模拟试题2（经典）.doc<br />
││├C2–全真答题纸.doc<br />
││├C3–全真参考答案.doc<br />
│├PMP考试全真模拟试题精选.doc<br />
│├PMP考试全真模拟试题精选答案.doc<br />
│├PMP考试之输入输出与工具.doc<br />
│├PMP练习题参考答案ok.doc<br />
│├PMP模拟试卷200.doc<br />
│├PMP模拟试卷.docx<br />
│├巨龙模考答案二.pdf<br />
│├巨龙模考答案三.pdf<br />
│├巨龙模考答案一.pdf<br />
│├巨龙模考二_1.pdf<br />
│├巨龙模考二_2.pdf<br />
│├巨龙模考三.pdf<br />
│├巨龙模考一.pdf<br />
│├新版PMP模拟1100题.pdf<br />
│├新版PMP模拟1100题答案.pdf<br />
│├200812模拟二讲稿.pptx<br />
│├答题纸.xls<br />
├学习辅助<br />
│├PMP 项目管理专家全息教程.pdf<br />
│├PMP备考记忆游戏卡（打印）.pdf<br />
│├PMP笔记.doc<br />
│├PMP考精.pdf<br />
│├PMP考试精要（2004版）.pdf<br />
│├案例串讲0812.pdf<br />
│├采购习题.docx<br />
│├网上的学习总结.doc<br />
│├项目管理练习.xls</p>
<p>想获得资料的方式很简单，请你<strong>转载本贴全文</strong>到你喜欢的<strong>论坛</strong>，<strong>贴吧</strong>，<strong>博客</strong>或<strong>QQ，MSN空间</strong>，把转载后的网页地址发到秋叶邮箱<a href="mailto:zhangzhifs@gmail.com"><strong>zhangzhifs@gmail.com</strong></a>，那么秋叶会第一时间回复邮件，提供资料下载的FTP地址和账号。</p>
<p>请勿在本文后留下邮件，请直接发秋叶邮箱<a href="mailto:zhangzhifs@gmail.com"><strong>zhangzhifs@gmail.com</strong></a>。</p>
<p>顺便说一下我们的新书《<a href="http://www.70man.com/?p=3148" target="_self">超越对手-大项目售前售后的30种实战技巧</a>》，还在做“项目经理必备工具包：项目管理中的22个思维导图”和原创教材《如何成为PPT高手》”分享传播的游戏，想参与这个分享活动的朋友可以去<a href="http://www.70man.com/?p=3148">http://www.70man.com/?p=3148</a>这里去看介绍。</p>
<p><img title="超越对手封面" src="http://www.70man.com/wp-content/uploads/e8b685e8b68ae5afb9e6898be5b081e99da2.jpg" alt="超越对手封面" width="153" height="208" /></p>
<p>新书《<a href="http://www.70man.com/?p=2980" target="_blank"><strong>超越对手–大项目售前售后的30种技巧</strong></a>》 总结了项目类工作从销售到实施阶段需要的30种技能。其中包括：寻找客户、销售策划、售前调研、解决方案、产品演示、公司考察、答标报价、高层汇报、起动 大会、调研分析、管理需求、实施策划、编制计划、团队建设、会议组织、用户培训、项目验收、有效回款等一线实战技能操作技巧。</p>
<p>这本书2009年12月18日上市后，销售非常好，不到一月就已经加印，在卓越和当当同类书籍中进入畅销排行榜，我们自信这本《<a href="http://www.70man.com/?p=2980" target="_blank"><strong>超越对手–大项目售前售后的30种技巧</strong></a>》可以成为项目经理学习完项目管理PMP理论体系后，提高实战技能的好助手。</p>
<p>新书在当当，卓越、淘宝和各大城市书店上已经可网购，我们作者也非常希望能在<a href="http://www.douban.com/subject/4195531/" target="_blank">豆瓣</a>或<a href="http://product.dangdang.com/product.aspx?product_id=20745025" target="_blank">当当</a>或<a href="http://www.amazon.cn/mn/detailApp/ref=sr_1_3?_encoding=UTF8&amp;s=books&amp;qid=1261058317&amp;asin=B0030EH9CU&amp;sr=1-3" target="_blank">卓越</a>听到你对新书《<a href="http://www.70man.com/?p=2980" target="_blank"><strong>超越对手–大项目售前售后的30种技巧</strong></a>》的评价，你也可以去看看其它朋友对新书的客观评论，我们几位作者会经常关注，寻求改进意见。</p>
<p>当当评论地址：（因销售火爆，经常断货，喜欢当当的朋友可以去做缺货登记）<br />
<a href="http://product.dangdang.com/product.aspx?product_id=20745025">http://product.dangdang.com/product.aspx?product_id=20745025</a></p>
<p>卓越评论地址：（因销售火爆，经常断货，喜欢卓越的朋友可以去做缺货登记）<br />
<a href="http://www.amazon.cn/mn/detailApp/ref=sr_1_3?_encoding=UTF8&amp;s=books&amp;qid=1261058317&amp;asin=B0030EH9CU&amp;sr=1-3">http://www.amazon.cn/mn/detailApp/ref=sr_1_3?_encoding=UTF8&amp;s=books&amp;qid=1261058317&amp;asin=B0030EH9CU&amp;sr=1-3</a></p>
<p>淘宝网购地址：（正在搞27元，买一送一活动，存货不多）<br />
<a href="http://item.taobao.com/auction/item_detail-0db2-513c8b810ce5a78935b89bdbe7253b49.jhtml">http://item.taobao.com/auction/item_detail-0db2-513c8b810ce5a78935b89bdbe7253b49.jhtml</a></p>
<p>好了，赶紧行动吧！</p>
]]></content:encoded>
			<wfw:commentRss>http://leedd.com/2010/01/142m-pmp-from-bookzh-com/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Linux下创建与解压tar, tar.gz和tar.bz2文件及压缩率对比</title>
		<link>http://leedd.com/2010/01/linux-tar-tar-gz-tar-bz2/</link>
		<comments>http://leedd.com/2010/01/linux-tar-tar-gz-tar-bz2/#comments</comments>
		<pubDate>Mon, 18 Jan 2010 09:26:23 +0000</pubDate>
		<dc:creator>东东有礼</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[学习笔记]]></category>
		<category><![CDATA[gzip]]></category>
		<category><![CDATA[tar]]></category>
		<category><![CDATA[tar.bz2]]></category>
		<category><![CDATA[tar.gz]]></category>
		<category><![CDATA[tgz]]></category>
		<category><![CDATA[zip]]></category>

		<guid isPermaLink="false">http://leedd.com/?p=808</guid>
		<description><![CDATA[Linux下创建与解压zip, tar, tar.gz和tar.bz2文件及该文件压缩对比
 刚在qq群里面一位仁兄问到文件压缩的...]]></description>
			<content:encoded><![CDATA[<p><!-- 		@page { margin: 2cm } 		P { margin-bottom: 0.21cm } 		H2 { margin-bottom: 0.21cm } 		H2.western { font-family: "Liberation Serif", serif } 		H2.cjk { font-family: "方正宋体"; font-style: normal } 		H2.ctl { font-family: "方正宋体" } --></p>
<h2><span style="font-family: Liberation Serif,serif;">Linux</span>下创建与解压<span style="font-family: Liberation Serif,serif;">zip, tar, tar.gz</span>和<span style="font-family: Liberation Serif,serif;">tar.bz2</span>文件及该文件压缩对比</h2>
<p><span style="font-family: Liberation Serif,serif;"> </span>刚在<span style="font-family: Liberation Serif,serif;">qq</span>群里面一位仁兄问到文件压缩的命令，平时工作中大多用解压缩命令，要是遇到压缩就现查（这不是一个好习惯），于是整理下<span style="font-family: Liberation Serif,serif;">Linux</span>下创建与解压<span style="font-family: Liberation Serif,serif;">zip</span>、<span style="font-family: Liberation Serif,serif;">tar</span>、<span style="font-family: Liberation Serif,serif;">tar.gz</span>和<span style="font-family: Liberation Serif,serif;">tar.bz2</span>文件及他们之间压缩率对比，在自己的脑袋内存空间有限又不经常使用的时候以便于备忘。现整理如下：</p>
<p><strong><span style="font-family: Liberation Serif,serif;"> </span>目前<span style="font-family: Liberation Serif,serif;">Linux</span>下常见的压缩文件扩展名：</strong></p>
<pre><span style="font-family: Liberation Serif,serif;"> <strong>*.Z        compress</strong></span><strong>程序压缩的文件（最早期使用）<span style="font-family: Liberation Serif,serif;">,</span>压缩后取代源文件；
<span style="font-family: Liberation Serif,serif;"> *.zip      </span>一个夸平台的文件打包程序，适用于<span style="font-family: Liberation Serif,serif;">Linux</span>、<span style="font-family: Liberation Serif,serif;">windows</span>和<span style="font-family: Liberation Serif,serif;">Mac OS</span>系统；
<span style="font-family: Liberation Serif,serif;"> *.bz2      bzip2</span>程序压缩的文件；
<span style="font-family: Liberation Serif,serif;"> *.gz       gzip</span>程序压缩的文件；
<span style="font-family: Liberation Serif,serif;"> *.tar      tar</span>程序打包的文件，并没有压缩；
<span style="font-family: Liberation Serif,serif;"> *.tar.gz   tar</span>程序打包的文件，并经过<span style="font-family: Liberation Serif,serif;">gzip</span>程序的压缩；
<span style="font-family: Liberation Serif,serif;"> *.tar.bz2  tar</span>程序打包的文件，并经过<span style="font-family: Liberation Serif,serif;">bzip2</span>程序压缩。</strong><!-- 		@page { margin: 2cm } 		P { margin-bottom: 0.21cm } --></pre>
<p><span style="font-family: Liberation Serif,serif;"><span style="color: #0000ff;"> </span><span style="color: #0000ff;"><span style="font-size: medium;"><strong>Tips</strong></span></span></span><span style="color: #0000ff;"><span style="font-size: medium;"><strong>：</strong></span></span>所谓扩展名只是大家约定的通用格式，是为了更方便的能一眼识别出是什么压缩类型，当然你可以打包或压缩为任意格式的后缀名，只要你愿意。</p>
<p><span id="more-808"></span></p>
<p><strong><span style="font-family: Liberation Serif,serif;"> A</span></strong><strong>）<span style="font-family: Liberation Serif,serif;">*.zip</span>格式是大家最常见的一种，它具有夸操作系统平台性，可以同时在<span style="font-family: Liberation Serif,serif;">windows</span>、<span style="font-family: Liberation Serif,serif;">Linux</span>和<span style="font-family: Liberation Serif,serif;">Mac Os</span>上使用。</strong></p>
<p><span style="font-family: Liberation Serif,serif;"> </span>大家可以用<span style="font-family: Liberation Serif,serif;">zip</span>格式压缩那些需要共享给<span style="font-family: Liberation Serif,serif;">windows</span>用户的文件。压缩与解压<span style="font-family: Liberation Serif,serif;"><strong>.ZIP</strong></span>格式的文件：</p>
<pre><span style="font-family: Liberation Serif,serif;">[Lee@leedd.Com tmp]$ <strong>zip -r test.zip tmp</strong> </span>
<span style="font-family: Liberation Serif,serif;">adding: test/ (stored 0%) </span>
<span style="font-family: Liberation Serif,serif;">adding: test/data-file (deflated 24%) </span>
<span style="font-family: Liberation Serif,serif;">adding: test/r (deflated 51%) </span></pre>
<p>下面是如果解压一个<span style="font-family: Liberation Serif,serif;">zip</span>文档：</p>
<pre><span style="font-family: Liberation Serif,serif;">[Lee@leedd.Com tmp]$ <strong>rm -rf test </strong>	#</span>为测试解压，先删除当前目录下的<span style="font-family: Liberation Serif,serif;">tmp</span>文件
<span style="font-family: Liberation Serif,serif;">[Lee@leedd.Com tmp]$ <strong>unzip  test.zip</strong> </span>
Archive:  test.zip
  creating: test/
 inflating: test/data-file
 inflating: test/r</pre>
<p><strong><span style="font-family: Liberation Serif,serif;">B) </span>压缩与解压<span style="font-family: Liberation Serif,serif;">*.tar*</span>、<span style="font-family: Liberation Serif,serif;">.tar.gz</span>、<span style="font-family: Liberation Serif,serif;">*.tar.bz2 </span>格式的文件及对比：</strong><span style="font-family: Liberation Serif,serif;"><br />
Tar</span>是在<span style="font-family: Liberation Serif,serif;">Linux</span>中使用得非常广泛的文档打包格式。它的好处就是它只消耗非常少的<span style="font-family: Liberation Serif,serif;">CPU</span>以及时间去打包文件，他仅仅只是一个打包工具，并不负责压缩<span style="font-family: Liberation Serif,serif;">,</span>压缩是由<span style="font-family: Liberation Serif,serif;">gzip</span>与<span style="font-family: Liberation Serif,serif;">bzip2</span>来实现的。因此把<span style="font-family: Liberation Serif,serif;"><strong>*.tar*</strong></span>、<span style="font-family: Liberation Serif,serif;"><strong>.tar.gz</strong></span>、<span style="font-family: Liberation Serif,serif;"><strong>*.tar.bz2 </strong></span>放到一起来举例：</p>
<p>比如我们要把目录<span style="font-family: Liberation Serif,serif;"><strong>/var/tmp</strong></span>下的<span style="font-family: Liberation Serif,serif;"><strong>test</strong></span>目录<strong>打包压缩</strong>到当前目录</p>
<pre><span style="font-family: Liberation Serif,serif;">[Lee@leedd tmp]$ <strong>tar -cvf   test.tar   test                ### </strong></span>仅打包，不压缩
<span style="font-family: Liberation Serif,serif;">[Lee@leedd tmp]$ <strong>tar -zcvf  test.tar.gz    test        ### </strong></span>打包后以<span style="font-family: Liberation Serif,serif;"><strong>gzip</strong></span>压缩
<span style="font-family: Liberation Serif,serif;">[Lee@leedd tmp]$ <strong>tar -jcvf  test.tar.bz2   test        ### </strong></span>打包后以<span style="font-family: Liberation Serif,serif;"><strong>bzip2</strong></span>压缩
<span style="font-family: Liberation Serif,serif;">[Lee@leedd tmp]$<strong> ll 	test.tar* 	                   ### </strong></span>对比压缩后<strong>文件大小</strong>
<span style="font-family: Liberation Serif,serif;">-rw-r--r-- 1 Lee mock 10240 01-18 17:05 test.tar </span>
<span style="font-family: Liberation Serif,serif;">-rw-r--r-- 1 Lee mock   357 01-18 17:06 test.tar.bz2 </span>
<span style="font-family: Liberation Serif,serif;">-rw-r--r-- 1 Lee mock   327 01-18 17:05 test.tar.gz</span></pre>
<p><strong>如何解压缩包：</strong></p>
<pre><span style="font-family: Liberation Serif,serif;">[Lee@leedd tmp]$ <strong>tar -xvf   test.tar</strong> </span>
<span style="font-family: Liberation Serif,serif;">[Lee@leedd tmp]$ <strong>tar -xvf   test.tar.gz</strong></span>
<span style="font-family: Liberation Serif,serif;">[Lee@leedd tmp]$ <strong>tar  -jxvf  test.tar.bz2</strong></span></pre>
<p>上面测试中，每次要删除解压后的<span style="font-family: Liberation Serif,serif;">test</span>文件后解压打其他目录，因为如果不定义解压后目录路径和名字则默认解压到当前目录并以把压缩包名称作为文件夹名字。如果要解压到其他目录（如<span style="font-family: Liberation Serif,serif;">:/var/tmp/find</span>）则如下：</p>
<pre><span style="font-family: Liberation Serif,serif;">[Lee@leedd tmp]$<strong> tar  -jxvf  test.tar.bz2  -C  /var/tmp/find </strong></span></pre>
<p><strong>关于</strong><span style="font-family: Liberation Serif,serif;"><strong>tar.gz</strong></span><strong>和</strong><span style="font-family: Liberation Serif,serif;"><strong>tar.bz2</strong></span><strong>压缩率的问题：</strong></p>
<p><span style="font-family: Liberation Serif,serif;"><strong> *.tar.gz </strong></span>在压缩时不会占用太多<span style="font-family: Liberation Serif,serif;">CPU</span>的，而且可以得到一个非常理想的压缩率。也会被简写成<span style="font-family: Liberation Serif,serif;">tgz</span>。</p>
<p><span style="font-family: Liberation Serif,serif;"><strong> *.tar.bz2</strong></span>网上好的资料说这种压缩格式是压缩率最好的、它比前面的方式要占用更多的<span style="font-family: Liberation Serif,serif;">CPU</span>与时间。但是经过上面的试验显示发现<span style="font-family: Liberation Serif,serif;">test.tar.gz</span>的大小竟然比<span style="font-family: Liberation Serif,serif;">test.tar.bz2</span>的更小（这是否意味者<span style="font-family: Liberation Serif,serif;">*.tar.gz</span>拥有更小的压缩率？ 至少这次实验是这样）</p>
<pre><strong><span style="font-family: Liberation Serif,serif;"> </span>如下附上这次测验的文件包（点击文件名下载）：</strong>
<strong>Test文件夹中的2个文件： <a href="http://leedd.com/docs/linux/20100118/test/data-file">data-file</a>  和  <a href="http://leedd.com/docs/linux/20100118/test/r">r</a>
<a href="http://leedd.com/docs/linux/20100118/test.tar">test.tar</a>     <a href="http://leedd.com/docs/linux/20100118/test.tar.gz">test.tar.gz</a>        <a href="http://leedd.com/docs/linux/20100118/test.tar.bz2">test.tar.bz2</a></strong><a href="http://leedd.com/docs/linux/20100118/test.tar.bz2"><span style="font-family: Liberation Serif,serif;"> </span></a></pre>
]]></content:encoded>
			<wfw:commentRss>http://leedd.com/2010/01/linux-tar-tar-gz-tar-bz2/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
	</channel>
</rss>

