<?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>Observer Life &#187; freebsd</title>
	<atom:link href="http://observerlife.com/tag/freebsd/feed/" rel="self" type="application/rss+xml" />
	<link>http://observerlife.com</link>
	<description>To be a better man (Observer)</description>
	<lastBuildDate>Sun, 05 Sep 2010 16:21:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Time and space optimization</title>
		<link>http://observerlife.com/time-and-space-optimization/</link>
		<comments>http://observerlife.com/time-and-space-optimization/#comments</comments>
		<pubDate>Thu, 10 Jul 2008 02:53:10 +0000</pubDate>
		<dc:creator>ycg</dc:creator>
				<category><![CDATA[Unix/Linux]]></category>
		<category><![CDATA[freebsd]]></category>
		<category><![CDATA[optimization]]></category>
		<category><![CDATA[space]]></category>

		<guid isPermaLink="false">http://www.kedy.cn/blog/?p=376</guid>
		<description><![CDATA[From: http://uw713doc.sco.com/en/FS_admin/_Time_and_Space_Optimization.html If you are using a ufs filesystem, the system attempts to optimize the time it takes to perform operations on the filesystem. In certain circumstances, the system attempts to optimize the space on the storage media being used by the filesystem. Space optimization occurs when file fragmentation exceeds: (free &#8211; 2) % of [...]]]></description>
			<content:encoded><![CDATA[<p><strong>From:</strong> http://uw713doc.sco.com/en/FS_admin/_Time_and_Space_Optimization.html</p>
<p>If you are using a <em>ufs</em> filesystem, the system attempts to optimize the time it takes to perform operations on the filesystem. In certain circumstances, the system attempts to optimize the space on the storage media being used by the filesystem.</p>
<p>Space optimization occurs when file fragmentation exceeds: <strong>(free &#8211; 2) %</strong> of free disk space. When file fragmentation exceeds this value, this message is displayed:</p>
<pre>Optimization changed from TIME to &lt;Space&gt;</pre>
<p>and the system will begin to optimize the space used by the filesystem.</p>
<p>The value of <strong>free</strong> is, by default, 10%, but it can be set to any value using the <a href="http://uw713doc.sco.com/en/man/html.1M/mkfs.1M.html"><strong>mkfs</strong>(1M)</a> command. The main use of <strong>free</strong> is to specify the minimum percentage of free disk space allowed. It is also used to limit the fragmentation of the filesystem.</p>
<p>When a file grows past an 8K boundary under time optimization, the system allocates a fragment (which is 1K in size) to contain the data. When the boundary of the fragment is exceeded, the system allocates a new 8K block, and the fragment is copied to it. This means that there could be nearly 7K of wasted space at the end of some files.</p>
<p>With space optimization, however, whenever a file grows past a 1K boundary, all the fragments since the last 8K boundary are copied into a new, larger fragment.</p>
<p>If your system has swapped to space optimization, and you want to revert to time optimization, you must increase the value of <strong>free</strong>. Use <a href="http://uw713doc.sco.com/en/man/html.1M/tunefs.1M.html"><strong>tunefs</strong>(1M)</a> to do this. You can increase <strong>free</strong> to any value you want; however, keep in mind the two functions of the <strong>free</strong> parameter if you want to set realistic values. <strong>free</strong> is used to do the following:</p>
<ul>
<p>&nbsp;</p>
<li>Set the minimum percentage of free disk space allowed. Therefore, if you set the value of <strong>free</strong> too high, ordinary (nonprivileged) users will not be able to write files (as described in <a href="http://uw713doc.sco.com/en/FS_admin/MFST_mkfsCreateFlSys.html">&#8220;Creating a filesystem with mkfs&#8221;</a>).
<p>&nbsp;</p>
</li>
<li>Set the maximum percentage of free disk space that can be fragments. Therefore, if you set the value of <strong>free</strong> too low, the optimization will change from time to space and file writes will be slower.</li>
</ul>
<p>Set the value of <strong>free</strong> carefully, taking into account the typical file size and the number of directories on your system.</p>
<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://observerlife.com/hello-2010/" rel="bookmark" class="crp_title">Hello, 2010</a></li><li><a href="http://observerlife.com/php%e9%87%8c%e7%9a%84%e6%96%87%e4%bb%b6%e7%8a%b6%e6%80%81%e7%bc%93%e5%ad%98/" rel="bookmark" class="crp_title">PHP里的文件状态缓存</a></li><li><a href="http://observerlife.com/web%e5%88%9b%e4%b8%9a%e7%9a%8410%e6%9d%a1%e6%88%92%e5%be%8b-fromkeso/" rel="bookmark" class="crp_title">Web创业的10条戒律( From:keso)</a></li><li><a href="http://observerlife.com/vim-quick-reference-card/" rel="bookmark" class="crp_title">VIM QUICK REFERENCE CARD</a></li><li><a href="http://observerlife.com/%e8%bd%ac%e5%b8%96%e9%a9%ac%e4%ba%91%e5%9c%a8%e8%b5%a2%e5%9c%a8%e4%b8%ad%e5%9b%bd%e7%9a%84%e4%b8%80%e4%ba%9b%e7%b2%be%e5%bd%a9%e8%af%84%e8%ae%ba/" rel="bookmark" class="crp_title">[转帖]马云在赢在中国的一些精彩评论</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://observerlife.com/time-and-space-optimization/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>System: arp: [ip] is on [if 0] but got reply from [mac] on [if 1]</title>
		<link>http://observerlife.com/system-arp-ip-is-on-if-0-but-got-reply-from-mac-on-if-1/</link>
		<comments>http://observerlife.com/system-arp-ip-is-on-if-0-but-got-reply-from-mac-on-if-1/#comments</comments>
		<pubDate>Wed, 02 Apr 2008 20:20:08 +0000</pubDate>
		<dc:creator>ycg</dc:creator>
				<category><![CDATA[Unix/Linux]]></category>
		<category><![CDATA[arp]]></category>
		<category><![CDATA[freebsd]]></category>

		<guid isPermaLink="false">http://www.kedy.cn/blog/?p=362</guid>
		<description><![CDATA[在FreeBSD里设置第二块网卡为内网网卡，同时又不经过路由器连接另一台机器的话，dmesg经常会收到如下的信息： System: arp: [ip] is on [if 0] but got reply from [mac] on [if 1]。 其意思就是IP地址本来在网卡if0上，但返回的MAC地址却是if1的MAC地址。这种情况也是受到arp病毒攻击时的会表现出来的状况。对这种情况，解释是这样的： A switch works on a low level: it only knows MAC addresses. When it receives a broadcast message it will send that message to all of its ports (like it is supposed to do). Your machine maneges an [...]]]></description>
			<content:encoded><![CDATA[<p>在FreeBSD里设置第二块网卡为内网网卡，同时又不经过路由器连接另一台机器的话，dmesg经常会收到如下的信息：<br />
System: arp: [ip] is on [if 0] but got reply from [mac] on [if 1]。<br />
其意思就是IP地址本来在网卡if0上，但返回的MAC地址却是if1的MAC地址。这种情况也是受到arp病毒攻击时的会表现出来的状况。对这种情况，解释是这样的：</p>
<pre>A switch works on a low level: it only knows MAC addresses. When it receives a broadcast message it will send that message to all of its ports (like it is supposed to do). Your machine maneges an arp table (try 'arp -a'). This table makes sure that your machine knows on which MAC address which ipaddress is so it can do an Internet-to-Ethernet translation. When the broadcast reaches your machine it will be received on both your NIC's. Arp notices that it gets a package from a MAC address of which it thought was on interface 0 on interface 1 and reports this problem. I think you might agree with me thatthis is a good thing. But everything works fine and there are situations where such a setup is desired and this problem generates allot of messages. These messages are going to hide some of the important other messages because of the amount of them so you realy want to get rid of them.</pre>
<p>&nbsp;意思是这样的：交换机只会认MAC地址。当收到广播信息时，它会把广播消息发送到本交换机的每个端口上。你的机器维护着一个路由表(命令行下输入arp -a可以查看这个路由表)，这个表确保你的机器能识别某一个MAC地址对应的IP地址，并因此可以完全Internet到Ethernet的转换。从交换机传来发广播信息会发送到两个网卡上，arp发现有一个错误的数据包，它以为是从网卡0上发送过来的，但事实上却是网卡1，于是就向系统报告了这个问题。你可能跟我想的一样，认为这是个好事情。一切工作正常，而这里却不停止的发送大量的错误报告(作者笔误，应该是 a lots of messages)。大量这些信息频繁出现以至于你严重影响到你阅读其他的一些重要的信息，于是你特别特别想把这些信息除去。</p>
<p>解决办法：<br />
这里就不多说了，作者提供了四种办法，但明显我们不会使用其他办法：1是忽略这些信息，2是从源代码中去掉这些信息，3是改进一下网络连接，连接路由器（作者原话是rewire，中文是我猜的，路由器可以有效的过滤一些广播信息），4是调整内核参数。有效而且容易实施的办法是4，在FreeBSD下可以如下操作：</p>
<pre>root@host:/#sysctl -w net.link.ether.inet.log_arp_wrong_iface=0然后在/etc/sysctl.conf(如果文件不存在，请自行创建)添加一行：net.link.ether.inet.log_arp_wrong_iface=0

其他*nix系统也是相同操作，不过大部分Linux默认内核设置里就已经设置为了0原文地址：http://www.freebsdhowtos.com/102.html</pre>
<p>&nbsp;</p>
<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://observerlife.com/freebsd%e7%b3%bb%e7%bb%9f%e5%ae%89%e5%85%a8zt/" rel="bookmark" class="crp_title">FreeBSD系统安全(ZT)</a></li><li><a href="http://observerlife.com/amp%e5%b9%b3%e5%8f%b0%e4%b8%8bweb%e6%9c%8d%e5%8a%a1%e4%bc%98%e5%8c%96%e7%9a%84%e5%87%a0%e7%82%b9%e7%bb%8f%e9%aa%8c/" rel="bookmark" class="crp_title">AMP平台下Web服务优化的几点经验</a></li><li><a href="http://observerlife.com/howto-gmail-and-ssmtp/" rel="bookmark" class="crp_title">HOWTO Gmail and sSMTP</a></li><li><a href="http://observerlife.com/apache%e6%9c%8d%e5%8a%a1%e5%99%a8time_wait%e8%bf%87%e5%a4%9a%e7%9a%84%e8%a7%a3%e5%86%b3%e5%8a%9e%e6%b3%95/" rel="bookmark" class="crp_title">Apache服务器TIME_WAIT过多的解决办法</a></li><li><a href="http://observerlife.com/freebsd-skills-everyday-1/" rel="bookmark" class="crp_title">FreeBSD skills everyday &#8212; 1</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://observerlife.com/system-arp-ip-is-on-if-0-but-got-reply-from-mac-on-if-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FreeBSD skills everday &#8212; 16</title>
		<link>http://observerlife.com/freebsd-skills-everday-16/</link>
		<comments>http://observerlife.com/freebsd-skills-everday-16/#comments</comments>
		<pubDate>Sun, 25 Nov 2007 07:32:21 +0000</pubDate>
		<dc:creator>ycg</dc:creator>
				<category><![CDATA[Unix/Linux]]></category>
		<category><![CDATA[freebsd]]></category>
		<category><![CDATA[skills]]></category>
		<category><![CDATA[sockstat]]></category>

		<guid isPermaLink="false">http://www.kedy.cn/blog/?p=331</guid>
		<description><![CDATA[Need to see which daemons are listening for connection requests? Use &#34;sockstat -4l&#34; for IPv4, and &#34;sockstat -l&#34; for IPv4 and IPv6. &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#8212; Dru &#60;genesis@istar.ca&#62; Related Posts:FreeBSD skills everyday &#8212; 3FreeBSD skills everyday &#8212; 4FreeBSD skills everyday &#8212; 13FreeBSD skills everyday &#8212; 11FreeBSD skills everyday &#8212; 8]]></description>
			<content:encoded><![CDATA[<p>Need to see which daemons are listening for connection requests? Use<br />
&quot;sockstat -4l&quot; for IPv4, and &quot;sockstat -l&quot; for IPv4 and IPv6.<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#8212; Dru &lt;genesis@istar.ca&gt;</p>
<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://observerlife.com/freebsd-skills-everyday-3/" rel="bookmark" class="crp_title">FreeBSD skills everyday &#8212; 3</a></li><li><a href="http://observerlife.com/freebsd-skills-everyday-4/" rel="bookmark" class="crp_title">FreeBSD skills everyday &#8212; 4</a></li><li><a href="http://observerlife.com/freebsd-skills-everyday-13/" rel="bookmark" class="crp_title">FreeBSD skills everyday &#8212; 13</a></li><li><a href="http://observerlife.com/freebsd-skills-everyday-11/" rel="bookmark" class="crp_title">FreeBSD skills everyday &#8212; 11</a></li><li><a href="http://observerlife.com/freebsd-skills-everyday-8/" rel="bookmark" class="crp_title">FreeBSD skills everyday &#8212; 8</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://observerlife.com/freebsd-skills-everday-16/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FreeBSD skills everyday &#8212; 15</title>
		<link>http://observerlife.com/freebsd-skills-everyday-15/</link>
		<comments>http://observerlife.com/freebsd-skills-everyday-15/#comments</comments>
		<pubDate>Sat, 24 Nov 2007 08:59:36 +0000</pubDate>
		<dc:creator>ycg</dc:creator>
				<category><![CDATA[Unix/Linux]]></category>
		<category><![CDATA[freebsd]]></category>
		<category><![CDATA[skills]]></category>
		<category><![CDATA[tr]]></category>
		<category><![CDATA[^m]]></category>

		<guid isPermaLink="false">http://www.kedy.cn/blog/?p=329</guid>
		<description><![CDATA[Need to remove all those ^M characters from a DOS file? Try &#160;&#160;&#160;&#160;&#160;&#160;&#160; tr -d \r &#60; dosfile &#62; newfile &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#8212; Originally by Dru &#60;genesis@istar.ca&#62; Related Posts:FreeBSD skills everyday &#8212; 2FreeBSD skills everyday &#8212; 9心本无声音尽有FreeBSD skills everyday &#8212; 4FreeBSD skills everyday &#8212; 13]]></description>
			<content:encoded><![CDATA[<p>Need to remove all those ^M characters from a DOS file? Try</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; tr -d \r &lt; dosfile &gt; newfile<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#8212; Originally by Dru &lt;genesis@istar.ca&gt;</p>
<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://observerlife.com/freebsd-skills-everyday-2/" rel="bookmark" class="crp_title">FreeBSD skills everyday &#8212; 2</a></li><li><a href="http://observerlife.com/freebsd-skills-everyday-9/" rel="bookmark" class="crp_title">FreeBSD skills everyday &#8212; 9</a></li><li><a href="http://observerlife.com/%e5%bf%83%e6%9c%ac%e6%97%a0%e5%a3%b0%e9%9f%b3%e5%b0%bd%e6%9c%89/" rel="bookmark" class="crp_title">心本无声音尽有</a></li><li><a href="http://observerlife.com/freebsd-skills-everyday-4/" rel="bookmark" class="crp_title">FreeBSD skills everyday &#8212; 4</a></li><li><a href="http://observerlife.com/freebsd-skills-everyday-13/" rel="bookmark" class="crp_title">FreeBSD skills everyday &#8212; 13</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://observerlife.com/freebsd-skills-everyday-15/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>在FreeBSD下，像Linux一样加载/proc分区</title>
		<link>http://observerlife.com/%e5%9c%a8freebsd%e4%b8%8b%ef%bc%8c%e5%83%8flinux%e4%b8%80%e6%a0%b7%e5%8a%a0%e8%bd%bdproc%e5%88%86%e5%8c%ba/</link>
		<comments>http://observerlife.com/%e5%9c%a8freebsd%e4%b8%8b%ef%bc%8c%e5%83%8flinux%e4%b8%80%e6%a0%b7%e5%8a%a0%e8%bd%bdproc%e5%88%86%e5%8c%ba/#comments</comments>
		<pubDate>Fri, 23 Nov 2007 07:10:36 +0000</pubDate>
		<dc:creator>ycg</dc:creator>
				<category><![CDATA[Unix/Linux]]></category>
		<category><![CDATA[cpuinfo]]></category>
		<category><![CDATA[freebsd]]></category>
		<category><![CDATA[proc]]></category>

		<guid isPermaLink="false">http://www.kedy.cn/blog/?p=328</guid>
		<description><![CDATA[在FreeBSD下，像Linux一样加载/proc分区: &#160;mount_linprocfs linprocfs /proc 就这一句，NB，谢谢mudone ，谢谢那位我不知道的混smth的牛。 Related Posts:重新开张nucer.org出国了记住这个日子-1937-12-13一个好习惯可以让自己享受一辈子Linux经典实用的使用技巧33则]]></description>
			<content:encoded><![CDATA[<p>在FreeBSD下，像Linux一样加载/proc分区:<br />
&nbsp;mount_linprocfs linprocfs /proc </p>
<p>就这一句，NB，谢谢<a href="http://www.mudone.com">mudone </a>，谢谢那位我不知道的混<a href="http://www.newsmth.net">smth</a>的牛。</p>
<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://observerlife.com/%e9%87%8d%e6%96%b0%e5%bc%80%e5%bc%a0/" rel="bookmark" class="crp_title">重新开张</a></li><li><a href="http://observerlife.com/nucer-org%e5%87%ba%e5%9b%bd%e4%ba%86/" rel="bookmark" class="crp_title">nucer.org出国了</a></li><li><a href="http://observerlife.com/%e8%ae%b0%e4%bd%8f%e8%bf%99%e4%b8%aa%e6%97%a5%e5%ad%90-1937-12-13/" rel="bookmark" class="crp_title">记住这个日子-1937-12-13</a></li><li><a href="http://observerlife.com/%e4%b8%80%e4%b8%aa%e5%a5%bd%e4%b9%a0%e6%83%af%e5%8f%af%e4%bb%a5%e8%ae%a9%e8%87%aa%e5%b7%b1%e4%ba%ab%e5%8f%97%e4%b8%80%e8%be%88%e5%ad%90/" rel="bookmark" class="crp_title">一个好习惯可以让自己享受一辈子</a></li><li><a href="http://observerlife.com/linux%e7%bb%8f%e5%85%b8%e5%ae%9e%e7%94%a8%e7%9a%84%e4%bd%bf%e7%94%a8%e6%8a%80%e5%b7%a733%e5%88%99/" rel="bookmark" class="crp_title">Linux经典实用的使用技巧33则</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://observerlife.com/%e5%9c%a8freebsd%e4%b8%8b%ef%bc%8c%e5%83%8flinux%e4%b8%80%e6%a0%b7%e5%8a%a0%e8%bd%bdproc%e5%88%86%e5%8c%ba/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FreeBSD skills erverday &#8212; 14</title>
		<link>http://observerlife.com/freebsd-skills-erverday-14/</link>
		<comments>http://observerlife.com/freebsd-skills-erverday-14/#comments</comments>
		<pubDate>Thu, 22 Nov 2007 20:02:01 +0000</pubDate>
		<dc:creator>ycg</dc:creator>
				<category><![CDATA[Unix/Linux]]></category>
		<category><![CDATA[freebsd]]></category>
		<category><![CDATA[init]]></category>
		<category><![CDATA[rc]]></category>
		<category><![CDATA[skills]]></category>

		<guid isPermaLink="false">http://www.kedy.cn/blog/?p=327</guid>
		<description><![CDATA[FreeBSD is started up by the program &#8216;init&#8217;.&#160; The first thing init does when starting multiuser mode (ie, starting the computer up for normal use) is to run the shell script /etc/rc.&#160; By reading /etc/rc, you can learn a lot about how the system is put together, which again will make you more confident about [...]]]></description>
			<content:encoded><![CDATA[<p>FreeBSD is started up by the program &#8216;init&#8217;.&nbsp; The first thing init does when<br />
starting multiuser mode (ie, starting the computer up for normal use) is to<br />
run the shell script /etc/rc.&nbsp; By reading /etc/rc, you can learn a lot about<br />
how the system is put together, which again will make you more confident about<br />
what happens when you do something with it.</p>
<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://observerlife.com/freebsd-skills-everyday-2/" rel="bookmark" class="crp_title">FreeBSD skills everyday &#8212; 2</a></li><li><a href="http://observerlife.com/freebsd-skills-everyday-11/" rel="bookmark" class="crp_title">FreeBSD skills everyday &#8212; 11</a></li><li><a href="http://observerlife.com/freebsd-skills-everyday-1/" rel="bookmark" class="crp_title">FreeBSD skills everyday &#8212; 1</a></li><li><a href="http://observerlife.com/freebsd-skills-everyday-15/" rel="bookmark" class="crp_title">FreeBSD skills everyday &#8212; 15</a></li><li><a href="http://observerlife.com/freebsd-skills-everyday-9/" rel="bookmark" class="crp_title">FreeBSD skills everyday &#8212; 9</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://observerlife.com/freebsd-skills-erverday-14/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FreeBSD skills everyday &#8212; 13</title>
		<link>http://observerlife.com/freebsd-skills-everyday-13/</link>
		<comments>http://observerlife.com/freebsd-skills-everyday-13/#comments</comments>
		<pubDate>Wed, 21 Nov 2007 18:12:47 +0000</pubDate>
		<dc:creator>ycg</dc:creator>
				<category><![CDATA[Unix/Linux]]></category>
		<category><![CDATA[freebsd]]></category>
		<category><![CDATA[netstat]]></category>
		<category><![CDATA[route]]></category>
		<category><![CDATA[skills]]></category>

		<guid isPermaLink="false">http://www.kedy.cn/blog/?p=326</guid>
		<description><![CDATA[Need to see your routing table? Type &#34;netstat -rn&#34;. The entry with the G flag is your gateway. &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#8212; Dru &#60;genesis@istar.ca&#62; Related Posts:FreeBSD skills everyday &#8212; 4FreeBSD skills everyday &#8212; 2FreeBSD skills everyday &#8212; 8FreeBSD skills everyday &#8212; 15FreeBSD skills everyday &#8212; 9]]></description>
			<content:encoded><![CDATA[<p>Need to see your routing table? Type &quot;netstat -rn&quot;. The entry with the G<br />
flag is your gateway.<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#8212; Dru &lt;genesis@istar.ca&gt;</p>
<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://observerlife.com/freebsd-skills-everyday-4/" rel="bookmark" class="crp_title">FreeBSD skills everyday &#8212; 4</a></li><li><a href="http://observerlife.com/freebsd-skills-everyday-2/" rel="bookmark" class="crp_title">FreeBSD skills everyday &#8212; 2</a></li><li><a href="http://observerlife.com/freebsd-skills-everyday-8/" rel="bookmark" class="crp_title">FreeBSD skills everyday &#8212; 8</a></li><li><a href="http://observerlife.com/freebsd-skills-everyday-15/" rel="bookmark" class="crp_title">FreeBSD skills everyday &#8212; 15</a></li><li><a href="http://observerlife.com/freebsd-skills-everyday-9/" rel="bookmark" class="crp_title">FreeBSD skills everyday &#8212; 9</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://observerlife.com/freebsd-skills-everyday-13/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FreeBSD skills everyday &#8212; 12</title>
		<link>http://observerlife.com/freebsd-skills-everyday-12/</link>
		<comments>http://observerlife.com/freebsd-skills-everyday-12/#comments</comments>
		<pubDate>Sun, 18 Nov 2007 06:55:53 +0000</pubDate>
		<dc:creator>ycg</dc:creator>
				<category><![CDATA[Unix/Linux]]></category>
		<category><![CDATA[freebsd]]></category>
		<category><![CDATA[sed]]></category>
		<category><![CDATA[skills]]></category>
		<category><![CDATA[unix命令]]></category>

		<guid isPermaLink="false">http://www.kedy.cn/blog/?p=325</guid>
		<description><![CDATA[Want to use sed(1) to edit a file in place?&#160; Well, to replace every &#8216;e&#8217; with an &#8216;o&#8217;, in a file named &#8216;foo&#8217;, you can do: &#160;&#160;&#160;&#160;&#160;&#160;&#160; sed -i.bak s/e/o/g foo And you&#8217;ll get a backup of the original in a file named &#8216;foo.bak&#8217;, but if you want no backup: &#160;&#160;&#160;&#160;&#160;&#160;&#160; sed -i &#8221; s/e/o/g [...]]]></description>
			<content:encoded><![CDATA[<p>Want to use sed(1) to edit a file in place?&nbsp; Well, to replace every &#8216;e&#8217; with<br />
an &#8216;o&#8217;, in a file named &#8216;foo&#8217;, you can do:</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sed -i.bak s/e/o/g foo</p>
<p>And you&#8217;ll get a backup of the original in a file named &#8216;foo.bak&#8217;, but if you<br />
want no backup:</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sed -i &#8221; s/e/o/g foo</p>
<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://observerlife.com/freebsd-skills-everyday-2/" rel="bookmark" class="crp_title">FreeBSD skills everyday &#8212; 2</a></li><li><a href="http://observerlife.com/freebsd-skills-everyday-15/" rel="bookmark" class="crp_title">FreeBSD skills everyday &#8212; 15</a></li><li><a href="http://observerlife.com/freebsd-skills-everyday-4/" rel="bookmark" class="crp_title">FreeBSD skills everyday &#8212; 4</a></li><li><a href="http://observerlife.com/%e5%bf%83%e6%9c%ac%e6%97%a0%e5%a3%b0%e9%9f%b3%e5%b0%bd%e6%9c%89/" rel="bookmark" class="crp_title">心本无声音尽有</a></li><li><a href="http://observerlife.com/freebsd-skills-everyday-9/" rel="bookmark" class="crp_title">FreeBSD skills everyday &#8212; 9</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://observerlife.com/freebsd-skills-everyday-12/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>FreeBSD skills everyday &#8212; 11</title>
		<link>http://observerlife.com/freebsd-skills-everyday-11/</link>
		<comments>http://observerlife.com/freebsd-skills-everyday-11/#comments</comments>
		<pubDate>Fri, 16 Nov 2007 19:24:17 +0000</pubDate>
		<dc:creator>ycg</dc:creator>
				<category><![CDATA[Unix/Linux]]></category>
		<category><![CDATA[alias]]></category>
		<category><![CDATA[freebsd]]></category>
		<category><![CDATA[skills]]></category>
		<category><![CDATA[unix命令]]></category>

		<guid isPermaLink="false">http://www.kedy.cn/blog/?p=324</guid>
		<description><![CDATA[You can use aliases to decrease the amount of typing you need to do to get commands you commonly use.&#160; Examples of fairly popular aliases include (in Bourne shell style, as in /bin/sh, bash, ksh, and zsh): &#160;&#160;&#160;&#160;&#160;&#160;&#160; alias lf=&#34;ls -FA&#34; &#160;&#160;&#160;&#160;&#160;&#160;&#160; alias ll=&#34;ls -lA&#34; &#160;&#160;&#160;&#160;&#160;&#160;&#160; alias su=&#34;su -m&#34; In csh or tcsh, these would [...]]]></description>
			<content:encoded><![CDATA[<p>You can use aliases to decrease the amount of typing you need to do to get<br />
commands you commonly use.&nbsp; Examples of fairly popular aliases include (in<br />
Bourne shell style, as in /bin/sh, bash, ksh, and zsh):</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; alias lf=&quot;ls -FA&quot;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; alias ll=&quot;ls -lA&quot;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; alias su=&quot;su -m&quot;</p>
<p>In csh or tcsh, these would be</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; alias lf ls -FA<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; alias ll ls -lA<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; alias su su -m</p>
<p>To remove an alias, you can usually use &#8216;unalias aliasname&#8217;.&nbsp; To list all<br />
aliases, you can usually type just &#8216;alias&#8217;.</p>
<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://observerlife.com/%e5%bf%83%e6%9c%ac%e6%97%a0%e5%a3%b0%e9%9f%b3%e5%b0%bd%e6%9c%89/" rel="bookmark" class="crp_title">心本无声音尽有</a></li><li><a href="http://observerlife.com/2009%e5%b9%b4%e7%9a%84%e5%85%83%e5%ae%b5%e8%8a%82/" rel="bookmark" class="crp_title">2009年的元宵节&#8230;</a></li><li><a href="http://observerlife.com/%e6%88%91%e7%9a%842006/" rel="bookmark" class="crp_title">我的2006</a></li><li><a href="http://observerlife.com/upgrade/" rel="bookmark" class="crp_title">upgrade</a></li><li><a href="http://observerlife.com/%e4%b8%ad%e3%80%8a%e5%a3%ab%e5%85%b5%e7%aa%81%e5%87%bb%e3%80%8b%e7%9a%84%e2%80%9c%e6%af%92%e2%80%9d%e7%9a%84%e4%b8%bb%e8%a6%81%e7%97%87%e7%8a%b6-%e7%9c%8b%e4%bd%a0%e6%9c%89%e5%87%a0%e6%9d%a1%ef%bc%9f/" rel="bookmark" class="crp_title">中《士兵突击》的“毒”的主要症状 看你有几条？？</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://observerlife.com/freebsd-skills-everyday-11/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>FreeBSD skills everyday &#8212; 10</title>
		<link>http://observerlife.com/freebsd-skills-everyday-10/</link>
		<comments>http://observerlife.com/freebsd-skills-everyday-10/#comments</comments>
		<pubDate>Thu, 15 Nov 2007 18:13:26 +0000</pubDate>
		<dc:creator>ycg</dc:creator>
				<category><![CDATA[Unix/Linux]]></category>
		<category><![CDATA[freebsd]]></category>
		<category><![CDATA[skills]]></category>
		<category><![CDATA[term]]></category>
		<category><![CDATA[unix命令]]></category>

		<guid isPermaLink="false">http://www.kedy.cn/blog/?p=322</guid>
		<description><![CDATA[If you are running xterm, the default TERM variable will be &#8216;xterm&#8217;.&#160; If you set this environment variable to &#8216;xterm-color&#8217; instead, a lot of programs will use colors.&#160; You can do this by &#160;&#160;&#160;&#160;&#160;&#160;&#160; TERM=xterm-color; export TERM in Bourne-derived shells, and &#160;&#160;&#160;&#160;&#160;&#160;&#160; setenv TERM xterm-color in csh-derived shells. Related Posts:FreeBSD skills everyday &#8212; 7心本无声音尽有FreeBSD skills [...]]]></description>
			<content:encoded><![CDATA[<p>If you are running xterm, the default TERM variable will be &#8216;xterm&#8217;.&nbsp; If you<br />
set this environment variable to &#8216;xterm-color&#8217; instead, a lot of programs will<br />
use colors.&nbsp; You can do this by</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TERM=xterm-color; export TERM</p>
<p>in Bourne-derived shells, and</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; setenv TERM xterm-color</p>
<p>in csh-derived shells.</p>
<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://observerlife.com/freebsd-skills-everyday-7/" rel="bookmark" class="crp_title">FreeBSD skills everyday &#8212; 7</a></li><li><a href="http://observerlife.com/%e5%bf%83%e6%9c%ac%e6%97%a0%e5%a3%b0%e9%9f%b3%e5%b0%bd%e6%9c%89/" rel="bookmark" class="crp_title">心本无声音尽有</a></li><li><a href="http://observerlife.com/freebsd-skills-everyday-2/" rel="bookmark" class="crp_title">FreeBSD skills everyday &#8212; 2</a></li><li><a href="http://observerlife.com/freebsd-skills-everyday-11/" rel="bookmark" class="crp_title">FreeBSD skills everyday &#8212; 11</a></li><li><a href="http://observerlife.com/freebsd-skills-everyday-15/" rel="bookmark" class="crp_title">FreeBSD skills everyday &#8212; 15</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://observerlife.com/freebsd-skills-everyday-10/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
