<?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; linux</title>
	<atom:link href="http://www.xiaoxiaozi.com/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.xiaoxiaozi.com</link>
	<description>Say you say me ,say we together~~</description>
	<lastBuildDate>Mon, 06 Feb 2012 10:31:26 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>.bash_pfofile、.bash_logout和.bashrc</title>
		<link>http://www.xiaoxiaozi.com/2011/05/22/2098/</link>
		<comments>http://www.xiaoxiaozi.com/2011/05/22/2098/#comments</comments>
		<pubDate>Sun, 22 May 2011 03:29:05 +0000</pubDate>
		<dc:creator>simaopig</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[shell]]></category>

		<guid isPermaLink="false">http://www.xiaoxiaozi.com/?p=2098</guid>
		<description><![CDATA[<blockquote>Linux环境下，.bash_profile、.bash_logout和.bashrc这些文件对bash有特殊含义。它们在用户登录或调用另一bash shell时给出了一种自动建立其登录账号环境的方式，并且允许退出时执行各种命令。</blockquote>

之前一直搞不懂 .bash_profile和.bashrc之间的关系是啥样子的。今天抽空看了一下书，记录一下。

首先，有的兄弟可能会奇怪的说，自己的主目录下面并没有这几个文件。那初始环境用的是啥子呢？如果这些文件不存在，用户登录使用默认系统文件 /etc/profile  ，请看一下这个文件是否存在吧。

[......]<p class='read-more'><a href='http://www.xiaoxiaozi.com/2011/05/22/2098/'>Read more</a></p>]]></description>
			<content:encoded><![CDATA[<blockquote><p>Linux环境下，.bash_profile、.bash_logout和.bashrc这些文件对bash有特殊含义。它们在用户登录或调用另一bash shell时给出了一种自动建立其登录账号环境的方式，并且允许退出时执行各种命令。</p></blockquote>
<p>之前一直搞不懂 .bash_profile和.bashrc之间[......]
<p class='read-more'><a href='http://www.xiaoxiaozi.com/2011/05/22/2098/'>Read more</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.xiaoxiaozi.com/2011/05/22/2098/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>grep 正则表达式选项要记得转义</title>
		<link>http://www.xiaoxiaozi.com/2011/03/07/2031/</link>
		<comments>http://www.xiaoxiaozi.com/2011/03/07/2031/#comments</comments>
		<pubDate>Mon, 07 Mar 2011 02:57:25 +0000</pubDate>
		<dc:creator>simaopig</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[grep]]></category>

		<guid isPermaLink="false">http://www.xiaoxiaozi.com/?p=2031</guid>
		<description><![CDATA[关于 grep 命令的介绍，大家可以参考这里：《<a href="http://www.xiaoxiaozi.com/2009/11/08/1610/" target="_blank">grep 正则表达式及选项</a>》

使用过程中，使用最多的参数就是 -v ，但是用着并不爽。

比如说，我想查找一个单词“UserService”，但是像"*.svn" 这种文件就不用显示了，我该怎么做呢？
[......]<p class='read-more'><a href='http://www.xiaoxiaozi.com/2011/03/07/2031/'>Read more</a></p>]]></description>
			<content:encoded><![CDATA[<p>关于 grep 命令的介绍，大家可以参考这里：《<a href="http://www.xiaoxiaozi.com/2009/11/08/1610/" target="_blank">grep 正则表达式及选项</a>》</p>
<p>使用过程中，使用最多的参数就是 -v ，但是用着并不爽。</p>
<p>比如说，我想查找一个单词“UserService”，但是像”*.svn” 这种文件就不用显示了，我该怎么做呢？<br />
<span id="more-2031"></span></p>
<div>::CODECOLORER_BLO[......]</div>
<p class='read-more'><a href='http://www.xiaoxiaozi.com/2011/03/07/2031/'>Read more</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.xiaoxiaozi.com/2011/03/07/2031/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Linux系统的常用操作命令大全</title>
		<link>http://www.xiaoxiaozi.com/2010/11/09/1985/</link>
		<comments>http://www.xiaoxiaozi.com/2010/11/09/1985/#comments</comments>
		<pubDate>Tue, 09 Nov 2010 07:38:02 +0000</pubDate>
		<dc:creator>simaopig</dc:creator>
				<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://www.xiaoxiaozi.com/?p=1985</guid>
		<description><![CDATA[摘自：http://hi.baidu.com/jackywdx/blog/item/393ccf4b64268bf482025cde.html
[......]<p class='read-more'><a href='http://www.xiaoxiaozi.com/2010/11/09/1985/'>Read more</a></p>]]></description>
			<content:encoded><![CDATA[<p>摘自：http://hi.baidu.com/jackywdx/blog/item/393ccf4b64268bf482025cde.html<br />
<span id="more-1985"></span><br />
系统</p>
<p># uname -a               # 查看内核/操作系统/CPU信息<br />
# head -n 1 /etc/issue[......]
<p class='read-more'><a href='http://www.xiaoxiaozi.com/2010/11/09/1985/'>Read more</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.xiaoxiaozi.com/2010/11/09/1985/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>更换至KUbuntu</title>
		<link>http://www.xiaoxiaozi.com/2010/10/10/1963/</link>
		<comments>http://www.xiaoxiaozi.com/2010/10/10/1963/#comments</comments>
		<pubDate>Sun, 10 Oct 2010 14:49:37 +0000</pubDate>
		<dc:creator>simaopig</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.xiaoxiaozi.com/?p=1963</guid>
		<description><![CDATA[久闻Kubuntu很帅，虽然之前也用过KDE，但是因为自己不爱折腾，并没有什么惊艳的感觉，不过今天切换后倒是让人眼前一亮。于是我又把Gnome删除了。

KUBUNTU的widget还是很多的，而且主题也很丰富。折腾过程中，唯一麻烦的就是ibus输入法和键盘布局。不过还好，最终总算是搞定了。

话说，也不知道搜狗，腾讯之流，啥时候能出Linux版五笔输入法，哪怕是拼音的也好哇～
[......]<p class='read-more'><a href='http://www.xiaoxiaozi.com/2010/10/10/1963/'>Read more</a></p>]]></description>
			<content:encoded><![CDATA[<p>久闻Kubuntu很帅，虽然之前也用过KDE，但是因为自己不爱折腾，并没有什么惊艳的感觉，不过今天切换后倒是让人眼前一亮。于是我又把Gnome删除了。</p>
<p>KUBUNTU的widget还是很多的，而且主题也很丰富。折腾过程中，唯一麻烦的就是ibus输入法和键盘布局。不过还好，最终总算是搞定了。[......]
<p class='read-more'><a href='http://www.xiaoxiaozi.com/2010/10/10/1963/'>Read more</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.xiaoxiaozi.com/2010/10/10/1963/feed/</wfw:commentRss>
		<slash:comments>21</slash:comments>
		</item>
		<item>
		<title>顺利升级ubuntu至10.10</title>
		<link>http://www.xiaoxiaozi.com/2010/10/10/1946/</link>
		<comments>http://www.xiaoxiaozi.com/2010/10/10/1946/#comments</comments>
		<pubDate>Sun, 10 Oct 2010 06:58:22 +0000</pubDate>
		<dc:creator>simaopig</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.xiaoxiaozi.com/?p=1946</guid>
		<description><![CDATA[今天是偶的生日，也是10年10月10日，Ubuntu发布10.10更新的日子。

一早起来，瞎折腾，开始升级系统，如果还不知道怎么升级的同学，可以在终端输入“update-manager -d“即可打开更新管理器进行更新。

中间去了趟超市，话说今天北京真的是阴的厉害，好大的雾啊。不过还好回来时还没有更新完，有一个选项让我选择，这才让我能把截图截完。呵。
[......]<p class='read-more'><a href='http://www.xiaoxiaozi.com/2010/10/10/1946/'>Read more</a></p>]]></description>
			<content:encoded><![CDATA[<p>今天是偶的生日，也是10年10月10日，Ubuntu发布10.10更新的日子。</p>
<p>一早起来，瞎折腾，开始升级系统，如果还不知道怎么升级的同学，可以在终端输入“update-manager -d“即可打开更新管理器进行更新。</p>
<p>中间去了趟超市，话说今天北京真的是阴的厉害，好大的雾啊。不过还好回[......]
<p class='read-more'><a href='http://www.xiaoxiaozi.com/2010/10/10/1946/'>Read more</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.xiaoxiaozi.com/2010/10/10/1946/feed/</wfw:commentRss>
		<slash:comments>20</slash:comments>
		</item>
		<item>
		<title>awk 实例之二维数组</title>
		<link>http://www.xiaoxiaozi.com/2010/07/15/1814/</link>
		<comments>http://www.xiaoxiaozi.com/2010/07/15/1814/#comments</comments>
		<pubDate>Thu, 15 Jul 2010 13:58:25 +0000</pubDate>
		<dc:creator>simaopig</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[awk]]></category>

		<guid isPermaLink="false">http://www.xiaoxiaozi.com/2010/07/15/1814/</guid>
		<description><![CDATA[<img alt="" src="http://img.laoxiaozi.com/shell_icon.png" class="alignleft" width="48" height="48" />由于 AWK 不支持二维数组，有时候使用起来还真不是那么得心应手。

这不，本次应用又遇到了难题，要是按照PHP的想法，仍然是用二维数组搞定，两层foreach一循环啥都完事了。可是不行啊，一个文件几十万行，用PHP去分析那不死的要多惨有多惨？

先来看一下日志结构，和原来一样，每行一条记录，用{SPR}分隔字段，第二个字段为游戏名，第四个字段为用户ID，现在要统计每个游戏的用户ID，且要消重，于是，困难来了。
[......]<p class='read-more'><a href='http://www.xiaoxiaozi.com/2010/07/15/1814/'>Read more</a></p>]]></description>
			<content:encoded><![CDATA[<p><img alt="" src="http://img.laoxiaozi.com/shell_icon.png" class="alignleft" width="48" height="48" />由于 AWK 不支持二维数组，有时候使用起来还真不是那么得心应手。</p>
<p>这不，本次应用又遇到了难题，要是按照PHP的想法，仍然是用二维数组搞定，两层foreach一循环啥都完事了。可是不行啊，一个文件几十万行，用PHP去分析那不死的要多惨有多惨？</p>
<p>先来看一下日志结构，和原来一样，每行一条记录[......]
<p class='read-more'><a href='http://www.xiaoxiaozi.com/2010/07/15/1814/'>Read more</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.xiaoxiaozi.com/2010/07/15/1814/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>字体文件也属于二进制文件</title>
		<link>http://www.xiaoxiaozi.com/2010/06/08/1766/</link>
		<comments>http://www.xiaoxiaozi.com/2010/06/08/1766/#comments</comments>
		<pubDate>Tue, 08 Jun 2010 05:52:05 +0000</pubDate>
		<dc:creator>simaopig</dc:creator>
				<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://www.xiaoxiaozi.com/2010/06/08/1766/</guid>
		<description><![CDATA[之前只知道图片属于二进制文件，别的就都不敢确定了。

今天做了一个验证码，需要上传一个字体文件。因为上线是用的打patch方式，所以有些犹豫这个字体文件到底是否属于二进制文件呢？

百思不得其解，咋确认呢？
[......]<p class='read-more'><a href='http://www.xiaoxiaozi.com/2010/06/08/1766/'>Read more</a></p>]]></description>
			<content:encoded><![CDATA[<p>之前只知道图片属于二进制文件，别的就都不敢确定了。</p>
<p>今天做了一个验证码，需要上传一个字体文件。因为上线是用的打patch方式，所以有些犹豫这个字体文件到底是否属于二进制文件呢？</p>
<p>百思不得其解，咋确认呢？<br />
<span id="more-1766"></span></p>
<p>其实办法还是有的，死马当活马医，不管咋的，新增了文件总是要放在svn里面的[......]
<p class='read-more'><a href='http://www.xiaoxiaozi.com/2010/06/08/1766/'>Read more</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.xiaoxiaozi.com/2010/06/08/1766/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>linux 使用join命令时切勿对文件进行数值排序</title>
		<link>http://www.xiaoxiaozi.com/2009/12/02/1659/</link>
		<comments>http://www.xiaoxiaozi.com/2009/12/02/1659/#comments</comments>
		<pubDate>Wed, 02 Dec 2009 12:47:35 +0000</pubDate>
		<dc:creator>simaopig</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[join]]></category>

		<guid isPermaLink="false">http://www.xiaoxiaozi.com/2009/12/02/1659/</guid>
		<description><![CDATA[之前我介绍过linux 的join命令和sort命令。有一点没有说明的是，使用join的时候是要对两个比较的文件先排序的。

但是这个排序是要小心进行的，一般使用sort不附加任何参数即可以，因为join实际上是按字符串对两个文件进行“撞”的。所以千万不要使用例如 -n -g这类参数对文件进行排序。
[......]<p class='read-more'><a href='http://www.xiaoxiaozi.com/2009/12/02/1659/'>Read more</a></p>]]></description>
			<content:encoded><![CDATA[<p>之前我介绍过linux 的join命令和sort命令。有一点没有说明的是，使用join的时候是要对两个比较的文件先排序的。</p>
<p>但是这个排序是要小心进行的，一般使用sort不附加任何参数即可以，因为join实际上是按字符串对两个文件进行“撞”的。所以千万不要使用例如 -n -g这类参数对文件进行排[......]
<p class='read-more'><a href='http://www.xiaoxiaozi.com/2009/12/02/1659/'>Read more</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.xiaoxiaozi.com/2009/12/02/1659/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>linux sort 的选项(参数)与用法举例</title>
		<link>http://www.xiaoxiaozi.com/2009/12/01/1652/</link>
		<comments>http://www.xiaoxiaozi.com/2009/12/01/1652/#comments</comments>
		<pubDate>Tue, 01 Dec 2009 09:01:55 +0000</pubDate>
		<dc:creator>simaopig</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[sort]]></category>

		<guid isPermaLink="false">http://www.xiaoxiaozi.com/?p=1652</guid>
		<description><![CDATA[最近一直在间隙性的做着一些统计的工作，所以接触了许多实际工作中用到的一些命令，而这些命令又无一不是有着丰富的参数，这大概是linux系统特有的吧。不了解这些参数就不能好好的工作，当然也就会让你陷入被动。今天就来为大家介绍一个在linux下非常有用的命令:sort。

因为公司用的机器是freeBSD，所以指定的sort的选项和用法可能和标准linux的不太一致。不过大抵是相同的。

本文分成三个部分，分别为大家介绍sort的作用、sort的选项(参数)及其含义、以及一些简单的示例。
[......]<p class='read-more'><a href='http://www.xiaoxiaozi.com/2009/12/01/1652/'>Read more</a></p>]]></description>
			<content:encoded><![CDATA[<p>最近一直在间隙性的做着一些统计的工作，所以接触了许多实际工作中用到的一些命令，而这些命令又无一不是有着丰富的参数，这大概是linux系统特有的吧。不了解这些参数就不能好好的工作，当然也就会让你陷入被动。今天就来为大家介绍一个在linux下非常有用的命令:sort。</p>
<p>因为公司用的机器是freeB[......]
<p class='read-more'><a href='http://www.xiaoxiaozi.com/2009/12/01/1652/'>Read more</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.xiaoxiaozi.com/2009/12/01/1652/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>linux wc 命令简介</title>
		<link>http://www.xiaoxiaozi.com/2009/12/01/1656/</link>
		<comments>http://www.xiaoxiaozi.com/2009/12/01/1656/#comments</comments>
		<pubDate>Tue, 01 Dec 2009 08:29:10 +0000</pubDate>
		<dc:creator>simaopig</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[wc]]></category>

		<guid isPermaLink="false">http://www.xiaoxiaozi.com/?p=1656</guid>
		<description><![CDATA[呃，此wc命令不是让大家没有食欲的地方。而是linux下一个简单的小命令。

<blockquote>
NAME
     wc -- word, line, character, and byte count

SYNOPSIS
     wc [-clmw] [file ...]
</blockquote>
[......]<p class='read-more'><a href='http://www.xiaoxiaozi.com/2009/12/01/1656/'>Read more</a></p>]]></description>
			<content:encoded><![CDATA[<p>呃，此wc命令不是让大家没有食欲的地方。而是linux下一个简单的小命令。</p>
<blockquote><p>
NAME<br />
     wc &#8212; word, line, character, and byte count</p>
<p>SYNOPSIS<br />
     wc [-clmw] [file ...]
</p></blockquote>
<p><span id="more-1656"></span><br />
下面让我们来简[......]
<p class='read-more'><a href='http://www.xiaoxiaozi.com/2009/12/01/1656/'>Read more</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.xiaoxiaozi.com/2009/12/01/1656/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
	</channel>
</rss>

