<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Tips and Tricks for Linux</title>
	<atom:link href="http://gnulinuxtricks.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://gnulinuxtricks.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Wed, 02 Jan 2008 08:44:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='gnulinuxtricks.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Tips and Tricks for Linux</title>
		<link>http://gnulinuxtricks.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://gnulinuxtricks.wordpress.com/osd.xml" title="Tips and Tricks for Linux" />
	<atom:link rel='hub' href='http://gnulinuxtricks.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Manually change the default login session</title>
		<link>http://gnulinuxtricks.wordpress.com/2008/01/02/manually-change-the-default-login-session/</link>
		<comments>http://gnulinuxtricks.wordpress.com/2008/01/02/manually-change-the-default-login-session/#comments</comments>
		<pubDate>Wed, 02 Jan 2008 08:43:56 +0000</pubDate>
		<dc:creator>tshrinivasan</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://gnulinuxtricks.wordpress.com/2008/01/02/manually-change-the-default-login-session/</guid>
		<description><![CDATA[1) Goto the user&#8217;s home directory $ cd 2) edit the file .dmrc $ gedit .dmrc 3) change the session to kde (or) gnome [Desktop] Session=kde4) save the file and logout Powered by ScribeFire.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gnulinuxtricks.wordpress.com&amp;blog=2137780&amp;post=14&amp;subd=gnulinuxtricks&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>1) Goto the user&#8217;s home directory<br /><span style="font-weight:bold;">
<pre>  $ cd</pre>
<p></span><br />2) edit the file <span style="font-weight:bold;">.dmrc</span><br /><span style="font-weight:bold;">
<pre>  $ gedit .dmrc </pre>
<p></span><br />3) change the session to kde (or) gnome<br /><span style="font-weight:bold;">           [Desktop]<br />           Session=kde<br /></span>4) save the file and logout</p>
<p class="poweredbyperformancing">Powered by <a href="http://scribefire.com/">ScribeFire</a>.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/gnulinuxtricks.wordpress.com/14/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/gnulinuxtricks.wordpress.com/14/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gnulinuxtricks.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gnulinuxtricks.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gnulinuxtricks.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gnulinuxtricks.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/gnulinuxtricks.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/gnulinuxtricks.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/gnulinuxtricks.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/gnulinuxtricks.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gnulinuxtricks.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gnulinuxtricks.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gnulinuxtricks.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gnulinuxtricks.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gnulinuxtricks.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gnulinuxtricks.wordpress.com/14/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gnulinuxtricks.wordpress.com&amp;blog=2137780&amp;post=14&amp;subd=gnulinuxtricks&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gnulinuxtricks.wordpress.com/2008/01/02/manually-change-the-default-login-session/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/75126d0fcfa68e78d34a6eaced8cad95?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">tshrinivasan</media:title>
		</media:content>
	</item>
		<item>
		<title>One click monitor power-down for Linux</title>
		<link>http://gnulinuxtricks.wordpress.com/2007/12/20/one-click-monitor-power-down-for-linux/</link>
		<comments>http://gnulinuxtricks.wordpress.com/2007/12/20/one-click-monitor-power-down-for-linux/#comments</comments>
		<pubDate>Thu, 20 Dec 2007 05:57:33 +0000</pubDate>
		<dc:creator>tshrinivasan</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://gnulinuxtricks.wordpress.com/2007/12/20/one-click-monitor-power-down-for-linux/</guid>
		<description><![CDATA[If you&#8217;re running a Linux-powered laptop and you want to switch off the screen, without waiting for the laptop to go into sleep mode, then this is a great tip from Tombuntu. To switch the your monitor off use the command: sleep 1 &#38;&#38; xset dpms force off. The sleep 1 (wait for one second) [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gnulinuxtricks.wordpress.com&amp;blog=2137780&amp;post=12&amp;subd=gnulinuxtricks&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;re running a Linux-powered laptop and you want to switch off<br />
the screen, without waiting for the laptop to go into sleep mode, then<br />
this is a great tip from <a href="http://tombuntu.com/index.php/2007/12/13/create-a-virtual-monitor-power-button/"> Tombuntu</a>. </p>
<p>To switch  the your monitor off use the command: <i>sleep 1 &amp;&amp; xset dpms force off</i>. </p>
<div class="quote">The <i>sleep 1</i> (wait for one second) is<br />
needed only when you are typing the command in a terminal. This is<br />
because the command is executed as soon as the enter key is pressed,<br />
when it lifts up X turns the monitor back on. </div>
<p>To turn this into a Linux desktop shortcut, right-click on your desktop and select &#8220;create new launcher&#8221;. </p>
<p>The &#8220;command&#8221; setting must be set to &#8220;<b>xset dpms force off</b>&#8221; (without the <i>sleep 1</i>).</p>
<p>source:</p>
<p><a href="http://www.tectonic.co.za/view.php?src=rss&amp;id=1943">http://www.tectonic.co.za/view.php?src=rss&amp;id=1943</a></p>
<p>
<p class="poweredbyperformancing">Powered by <a href="http://scribefire.com/">ScribeFire</a>.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/gnulinuxtricks.wordpress.com/12/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/gnulinuxtricks.wordpress.com/12/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gnulinuxtricks.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gnulinuxtricks.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gnulinuxtricks.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gnulinuxtricks.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/gnulinuxtricks.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/gnulinuxtricks.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/gnulinuxtricks.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/gnulinuxtricks.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gnulinuxtricks.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gnulinuxtricks.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gnulinuxtricks.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gnulinuxtricks.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gnulinuxtricks.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gnulinuxtricks.wordpress.com/12/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gnulinuxtricks.wordpress.com&amp;blog=2137780&amp;post=12&amp;subd=gnulinuxtricks&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gnulinuxtricks.wordpress.com/2007/12/20/one-click-monitor-power-down-for-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/75126d0fcfa68e78d34a6eaced8cad95?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">tshrinivasan</media:title>
		</media:content>
	</item>
		<item>
		<title>All about Linux swap space</title>
		<link>http://gnulinuxtricks.wordpress.com/2007/12/04/all-about-linux-swap-space/</link>
		<comments>http://gnulinuxtricks.wordpress.com/2007/12/04/all-about-linux-swap-space/#comments</comments>
		<pubDate>Tue, 04 Dec 2007 03:50:37 +0000</pubDate>
		<dc:creator>tshrinivasan</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://gnulinuxtricks.wordpress.com/2007/12/04/all-about-linux-swap-space/</guid>
		<description><![CDATA[December 03, 2007 (4:00:00 PM) &#160;-&#160; 11 hours, 49 minutes ago By: Gary Sims Whenyour computer needs to run programs that are bigger than your availablephysical memory, most modern operating systems use a technique calledswapping, in which chunks of memory are temporarily stored on the harddisk while other data is moved into physical memory space. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gnulinuxtricks.wordpress.com&amp;blog=2137780&amp;post=11&amp;subd=gnulinuxtricks&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div class="xar-article-details">December 03, 2007 (4:00:00 PM)	         &nbsp;-&nbsp; 11 hours, 49 minutes ago<br /> 
<p>                By: <a href="http://www.hungrypenguin.net/">Gary Sims</a>            </p>
<p>       </div>
<p> 
<div class="xar-clearleft"> 
<p>When<br />your computer needs to run programs that are bigger than your available<br />physical memory, most modern operating systems use a technique called<br />swapping, in which chunks of memory are temporarily stored on the hard<br />disk while other data is moved into physical memory space. Here are<br />some techniques that may help you better manage swapping on Linux<br />systems and get the best performance from the Linux swapping subsystem.</p>
</p></div>
<p> 
<p>Linux<br />divides its physical RAM (random access memory) into chucks of memory<br />called pages. Swapping is the process whereby a page of memory is<br />copied to the preconfigured space on the hard disk, called swap space,<br />to free up that page of memory. The combined sizes of the physical<br />memory and the swap space is the amount of virtual memory available.</p>
<p>Swapping is necessary for two important reasons. First, when the<br />system requires more memory than is physically available, the kernel<br />swaps out less used pages and gives memory to the current application<br />(process) that needs the memory immediately. Second, a significant<br />number of the pages used by an application during its startup phase may<br />only be used for initialization and then never used again. The system<br />can swap out those pages and free the memory for other applications or<br />even for the disk cache.</p>
<p>However, swapping does have a downside. Compared to memory, disks<br />are very slow. Memory speeds can be measured in nanoseconds, while<br />disks are measured in milliseconds, so accessing the disk can be tens<br />of thousands times slower than accessing physical memory. The more<br />swapping that occurs, the slower your system will be. Sometimes<br />excessive swapping or thrashing occurs where a page is swapped out and<br />then very soon swapped in and then swapped out again and so on. In such<br />situations the system is struggling to find free memory and keep<br />applications running at the same time. In this case only adding more<br />RAM will help.</p>
<p>Linux has two forms of swap space: the swap partition and the swap<br />file. The swap partition is an independent section of the hard disk<br />used solely for swapping; no other files can reside there. The swap<br />file is a special file in the filesystem that resides amongst your<br />system and data files.</p>
<p>To see what swap space you have, use the command <code>swapon -s</code>. The output will look something like this:</p>
<pre>Filename        Type            Size    Used    Priority

/dev/sda5       partition       859436  0       -1</pre>
<p>Each line lists a separate swap space being used by the system.<br />Here, the &#8216;Type&#8217; field indicates that this swap space is a partition<br />rather than a file, and from &#8216;Filename&#8217; we see that it is on the disk<br />sda5. The &#8216;Size&#8217; is listed in kilobytes, and the &#8216;Used&#8217; field tells us<br />how many kilobytes of swap space has been used (in this case none).<br />&#8216;Priority&#8217; tells Linux which swap space to use first. One great thing<br />about the Linux swapping subsystem is that if you mount two (or more)<br />swap spaces (preferably on two different devices) with the same<br />priority, Linux will interleave its swapping activity between them,<br />which can greatly increase swapping performance.</p>
<p>To add an extra swap partition to your system, you first need to<br />prepare it. Step one is to ensure that the partition is marked as a<br />swap partition and step two is to make the swap filesystem. To check<br />that the partition is marked for swap, run as root:</p>
<pre>fdisk -l /dev/hdb</pre>
<p>Replace /dev/hdb with the device of the hard disk on your system<br />with the swap partition on it. You should see output that looks like<br />this:</p>
<pre> Device Boot    Start   End     Blocks  Id      System

/dev/hdb1       2328    2434    859446  82      Linux swap / Solaris</pre>
<p>If the partition isn&#8217;t marked as swap you will need to alter it by<br />running fdisk and using the &#8216;t&#8217; menu option. Be careful when working<br />with partitions &#8212; you don&#8217;t want to delete important partitions by<br />mistake or change the id of your system partition to swap by mistake.<br />All data on a swap partition will be lost, so double-check every change<br />you make. Also note that Solaris uses the same ID as Linux swap space<br />for its partitions, so be careful not to kill your Solaris partitions<br />by mistake.</p>
<p>Once a partition is marked as swap, you need to prepare it using the mkswap (make swap) command as root:</p>
<pre>mkswap /dev/hdb1</pre>
<p>If you see no errors, your swap space is ready to use. To activate it immediately, type:</p>
<pre>swapon /dev/hdb1</pre>
<p>You can verify that it is being used by running <code>swapon -s</code>.<br />To mount the swap space automatically at boot time, you must add an<br />entry to the /etc/fstab file, which contains a list of filesystems and<br />swap spaces that need to be mounted at boot up. The format of each line<br />is:</p>
<pre></pre>
<p>Since swap space is a special type of filesystem, many of these parameters aren&#8217;t applicable. For swap space, add:</p>
<pre>/dev/hdb1       none    swap    sw      0       0</pre>
<p>where /dev/hdb1 is the swap partition. It doesn&#8217;t have a specific mount point, hence <em>none</em>. It is of type <em>swap</em> with options of <em>sw</em>, and the last two parameters aren&#8217;t used so they are entered as 0.</p>
<p>To check that your swap space is being automatically mounted without having to reboot, you can run the <code>swapoff -a</code> command (which turns off all swap spaces) and then <code>swapon -a</code> (which mounts all swap spaces listed in the /etc/fstab file) and then check it with <code>swapon -s</code>.</p>
<h4>Swap file</h4>
<p>As well as the swap partition, Linux also supports a swap file that<br />you can create, prepare, and mount in a fashion similar to that of a<br />swap partition. The advantage of swap files is that you don&#8217;t need to<br />find an empty partition or repartition a disk to add additional swap<br />space.</p>
<p>To create a swap file, use the dd command to create an empty file. To create a 1GB file, type:</p>
<pre>dd if=/dev/zero of=/swapfile bs=1024 count=1048576</pre>
<p>/swapfile is the name of the swap file, and the count of 1048576 is the size in kilobytes (i.e. 1GB).</p>
<p>Prepare the swap file using <code>mkswap</code> just as you would a partition, but this time use the name of the swap file:</p>
<pre>mkswap /swapfile</pre>
<p>And similarly, mount it using the swapon command: <code>swapon /swapfile</code>.</p>
<p>The /etc/fstab entry for a swap file would look like this:</p>
<pre>/swapfile       none    swap    sw      0       0</pre>
<h4>How big should my swap space be?</h4>
<p>It is possible to run a Linux system without a swap space, and the<br />system will run well if you have a large amount of memory &#8212; but if you<br />run out of physical memory then the system will crash, as it has<br />nothing else it can do, so it is advisable to have a swap space,<br />especially since disk space is relatively cheap.</p>
<p>The key question is how much? Older versions of Unix-type operating<br />systems (such as Sun OS and Ultrix) demanded a swap space of two to<br />three times that of physical memory. Modern implementations (such as<br />Linux) don&#8217;t require that much, but they can use it if you configure<br />it. A rule of thumb is as follows: 1) for a desktop system, use a swap<br />space of double system memory, as it will allow you to run a large<br />number of applications (many of which may will be idle and easily<br />swapped), making more RAM available for the active applications; 2) for<br />a server, have a smaller amount of swap available (say half of physical<br />memory) so that you have some flexibility for swapping when needed, but<br />monitor the amount of swap space used and upgrade your RAM if<br />necessary; 3) for older desktop machines (with say only 128MB), use as<br />much swap space as you can spare, even up to 1GB.</p>
<p>The Linux 2.6 kernel added a new kernel parameter called <em>swappiness</em><br />to let administrators tweak the way Linux swaps. It is a number from 0<br />to 100. In essence, higher values lead to more pages being swapped, and<br />lower values lead to more applications being kept in memory, even if<br />they are idle. Kernel maintainer Andrew Morton has said that he runs<br />his desktop machines with a swappiness of 100, stating that &#8220;My point<br />is that decreasing the tendency of the kernel to swap stuff out is<br />wrong. You really don&#8217;t want hundreds of megabytes of BloatyApp&#8217;s<br />untouched memory floating about in the machine. Get it out on the disk,<br />use the memory for something useful.&#8221;</p>
<p>One downside to Morton&#8217;s idea is that if memory is swapped out too<br />quickly then application response time drops, because when the<br />application&#8217;s window is clicked the system has to swap the application<br />back into memory, which will make it feel slow.</p>
<p>The default value for swappiness is 60. You can alter it temporarily (until you next reboot) by typing as root:</p>
<pre>echo 50 &gt; /proc/sys/vm/swappiness</pre>
<p>If you want to alter it permanently then you need to change the <em>vm.swappiness</em> parameter in the /etc/sysctl.conf file.</p>
<h4>Conclusion</h4>
<p>Managing swap space is an essential aspect of system administration.<br />With good planning and proper use swapping can provide many benefits.<br />Don&#8217;t be afraid to experiment, and always monitor your system to ensure<br />you are getting the results you need.</p>
<p>
<div>            &lt;!&#8211;  Ad block??</p>
<p>            &#8211;&gt;      </div>
<p>Read in the original layout at: <a href="http://www.linux.com/feature/121916">http://www.linux.com/feature/121916</a></p>
<p class="poweredbyperformancing">Powered by <a href="http://scribefire.com/">ScribeFire</a>.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/gnulinuxtricks.wordpress.com/11/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/gnulinuxtricks.wordpress.com/11/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gnulinuxtricks.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gnulinuxtricks.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gnulinuxtricks.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gnulinuxtricks.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/gnulinuxtricks.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/gnulinuxtricks.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/gnulinuxtricks.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/gnulinuxtricks.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gnulinuxtricks.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gnulinuxtricks.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gnulinuxtricks.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gnulinuxtricks.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gnulinuxtricks.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gnulinuxtricks.wordpress.com/11/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gnulinuxtricks.wordpress.com&amp;blog=2137780&amp;post=11&amp;subd=gnulinuxtricks&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gnulinuxtricks.wordpress.com/2007/12/04/all-about-linux-swap-space/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/75126d0fcfa68e78d34a6eaced8cad95?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">tshrinivasan</media:title>
		</media:content>
	</item>
		<item>
		<title>APT-build — optimize your Debian!</title>
		<link>http://gnulinuxtricks.wordpress.com/2007/11/26/apt-build-%e2%80%94-optimize-your-debian/</link>
		<comments>http://gnulinuxtricks.wordpress.com/2007/11/26/apt-build-%e2%80%94-optimize-your-debian/#comments</comments>
		<pubDate>Mon, 26 Nov 2007 07:22:29 +0000</pubDate>
		<dc:creator>tshrinivasan</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://gnulinuxtricks.wordpress.com/2007/11/26/apt-build-%e2%80%94-optimize-your-debian/</guid>
		<description><![CDATA[Certainly most of the Linux users would like to have theirsystems fully optimized for their rigs but do not have the stamina orenough knowledge to play with the Gentoo installation paradigm. Buthere comes the rescue — an apt-build goody available under every distroarmed with the big gun &#8211; APT package manager. Author: Gallus Annonimus Time [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gnulinuxtricks.wordpress.com&amp;blog=2137780&amp;post=9&amp;subd=gnulinuxtricks&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p class="img-right"><strong>Certainly most of the Linux users would like to have their<br />systems fully optimized for their rigs but do not have the stamina or<br />enough knowledge to play with the Gentoo installation paradigm. But<br />here comes the rescue — an apt-build goody available under every distro<br />armed with the big gun &#8211; APT package manager.</strong></p>
<p><em>Author: Gallus Annonimus</em>
<p>Time to make the beast work for us. First we have to install it. Issue the command:</p>
<p>
<pre>apt-get install apt-build</pre>
<p>
<p>Now it’s time to configure it. In doing so, we’ll be asked for an<br />optimization level — whether we want to create an apt-build repo for<br />APT, and a question about processor architecture. Of course all options<br />can be reconfigured in this way:</p>
<p>
<pre>dpkg-reconfigure apt-build</pre>
<p>
<p>The above command offers two additional options for the <strong>gcc</strong> compiler and <strong>make</strong> builder. Their descriptions can be found in system manuals: <code>man gcc</code> and <code>man make</code>.</p>
<p>
<h3>
<p>Optimizing system</p>
<p></h3>
<p>
<p>Let’s go to the next step and start optimizing our system. Our program makes use of <strong>deb-src</strong> entries contained in the <em>etc/apt/sources.list</em> file. Thanks to the source addresses compilation and installation processes are fully automatic (similar to <em>emerge</em> found in Gentoo). <strong>Apt-build</strong> downloads sources of the main application and its dependencies, compiles them, creates a <strong>deb</strong> package, and finally installs the package.</p>
<p>
<p>We are offered a broad spectrum of options. I list only a few basic ones:</p>
<p>
<ul>
<li><code>apt-build update</code> — updates repo list,</li>
<li><code>apt-build upgrade</code> — updates operating system,</li>
<li><code>apt-build install program</code> — installs an application,</li>
<li><code>apt-build world</code> — something for hard-core users, it recompiles whole system!</li>
</ul>
<p>
<p>Other useful options:</p>
<p>
<ul>
<li><code>--noupdate</code> — useful for underpowered machines and when we do not want to update repos (apt-build refreshes repos with every invocation),</li>
<li><code>--yes</code> — we do not have time to approve every stupid question during program installation,</li>
<li><code>--force-yes</code> — we approve unauthorized packages<br />(ATTENTION: apt-build does not install unauthorized packages — what’s<br />worse is it won’t ask us for this; the option’s highly recommended),</li>
<li><code>--reinstall</code> — reinstalls a package,</li>
<li><code>--rebuild</code> — builds a package from the beginning.</li>
</ul>
<p>
<h3>
<p>Make your Debian anew!</p>
<p></h3>
<p>
<p>Anyone ready to jump to the deep waters of system recompilation,<br />after reading above remarks, has to acquaint himself with a few things<br />without which the compilation process will not yield.</p>
<p>
<p>At first the apt-build command should spit out the message:</p>
<p>
<pre>-----Rebuilding the world!-----

-----Building package list-----

Please read README.Debian first.</pre>
<p>
<p>Of course, the system failed to rebuild due to the fact it didn’t<br />have a full list of system packages. We’ll try to amend this omission<br />with the following command (it can be issued in one row without the<br />backslash too):</p>
<p>
<pre>dpkg --get-selections | awk '{if ($2 == "install") print $1}'&gt; 

 /etc/apt/apt-build.list</pre>
<p>
<p>I suggest to add two options — <code>--yes</code> and <code>--force-yes</code><br />— to make the rebuilding process fully automatic. Recompilation should<br />start without a problem now. But you will never achieve 100% certainty<br />that the compilation will go smoothly, that it will not stop at some<br />point even after you’ve made every theoretical precaution.</p>
<p>
<h3>
<p>But what about USE flags?</p>
<p></h3>
<p>
<p>A lot of you wonder whether we could have accessed USE flags, as we<br />were able to recompile our system like Gentoo distros. For those<br />uninitiated into compilation secrets: USE flags are special options for<br /><em>portage</em> (Gentoo package control system). They free us from<br />typing a lot of compilation options. For example, if we use GNOME and<br />we do not need KDE parts we can preset the compiler to process<br />applications for the first graphical environment only. Sorry, but<br />apt-build cannot manage USE flags.</p>
<p>
<p>In spite of being at an early stage of development, the program is<br />promising. In my opinion it will be able to compete with Gentoo’s <em>portage</em> in the future. But as for today, the <em>apt-build</em> system it too young and underdeveloped to compete with the stable, mature, and easy to use <em>portage</em>.<br />Anyway, don’t worry. Debian wasn’t created to be compiled by users,<br />contrary to Gentoo. Users should make use of Debian’s gigantic default<br />repositories of ready-to-use binaries. But who from us, the users,<br />never wanted to optimize his system in the past and wouldn’t like to<br />optimize it in the future?</p>
<p>source:<br /><a href="http://polishlinux.org/linux/debian/apt-build-optimize-debian/">http://polishlinux.org/linux/debian/apt-build-optimize-debian/</a></p>
<p>
<p class="poweredbyperformancing">Powered by <a href="http://scribefire.com/">ScribeFire</a>.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/gnulinuxtricks.wordpress.com/9/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/gnulinuxtricks.wordpress.com/9/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gnulinuxtricks.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gnulinuxtricks.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gnulinuxtricks.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gnulinuxtricks.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/gnulinuxtricks.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/gnulinuxtricks.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/gnulinuxtricks.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/gnulinuxtricks.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gnulinuxtricks.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gnulinuxtricks.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gnulinuxtricks.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gnulinuxtricks.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gnulinuxtricks.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gnulinuxtricks.wordpress.com/9/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gnulinuxtricks.wordpress.com&amp;blog=2137780&amp;post=9&amp;subd=gnulinuxtricks&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gnulinuxtricks.wordpress.com/2007/11/26/apt-build-%e2%80%94-optimize-your-debian/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/75126d0fcfa68e78d34a6eaced8cad95?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">tshrinivasan</media:title>
		</media:content>
	</item>
		<item>
		<title>Recovering Data from Windows systems by using Linux</title>
		<link>http://gnulinuxtricks.wordpress.com/2007/11/21/recovering-data-from-windows-systems-by-using-linux/</link>
		<comments>http://gnulinuxtricks.wordpress.com/2007/11/21/recovering-data-from-windows-systems-by-using-linux/#comments</comments>
		<pubDate>Wed, 21 Nov 2007 03:17:32 +0000</pubDate>
		<dc:creator>tshrinivasan</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://gnulinuxtricks.wordpress.com/2007/11/21/recovering-data-from-windows-systems-by-using-linux/</guid>
		<description><![CDATA[The hard disk failures, boot failure, bad sectors are as usual as normal booting in windows. The FAT and NTFS file systems can not withstand high stresses and strains. When a disk failures, in windows, there is hardly no way to recover the data, unless you steal some proprietary&#160; software from friends or internet. &#160;But, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gnulinuxtricks.wordpress.com&amp;blog=2137780&amp;post=8&amp;subd=gnulinuxtricks&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The hard disk failures, boot failure, bad sectors are as usual as normal booting in windows. The FAT and NTFS file systems can not withstand high stresses and strains.</p>
<p>When a disk failures, in windows, there is hardly no way to recover the data, unless you steal some proprietary&nbsp; software from friends or internet.</p>
<p>&nbsp;But, Linux comes with tons of tools and utilities. So, recovery from the partitions is so easy with those power tools.</p>
<p><b>dd</b> and&nbsp; <b>mount</b> are the great simple tools that do the magic.<br /><a href="http://port25.technet.com/attachment/4390.ashx"><br />Here is the detailed document</a></p>
<p>Note: <br />Port25 is Microsoft’s OpenSource software lab, and they have created a document where they show how to recover data from Windows systems using Linux.</p>
<p class="poweredbyperformancing">Powered by <a href="http://scribefire.com/">ScribeFire</a>.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/gnulinuxtricks.wordpress.com/8/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/gnulinuxtricks.wordpress.com/8/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gnulinuxtricks.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gnulinuxtricks.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gnulinuxtricks.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gnulinuxtricks.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/gnulinuxtricks.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/gnulinuxtricks.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/gnulinuxtricks.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/gnulinuxtricks.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gnulinuxtricks.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gnulinuxtricks.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gnulinuxtricks.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gnulinuxtricks.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gnulinuxtricks.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gnulinuxtricks.wordpress.com/8/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gnulinuxtricks.wordpress.com&amp;blog=2137780&amp;post=8&amp;subd=gnulinuxtricks&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gnulinuxtricks.wordpress.com/2007/11/21/recovering-data-from-windows-systems-by-using-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/75126d0fcfa68e78d34a6eaced8cad95?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">tshrinivasan</media:title>
		</media:content>
	</item>
		<item>
		<title>CLI Magic: Video conversion with mencoder</title>
		<link>http://gnulinuxtricks.wordpress.com/2007/11/21/cli-magic-video-conversion-with-mencoder/</link>
		<comments>http://gnulinuxtricks.wordpress.com/2007/11/21/cli-magic-video-conversion-with-mencoder/#comments</comments>
		<pubDate>Wed, 21 Nov 2007 03:00:42 +0000</pubDate>
		<dc:creator>tshrinivasan</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://gnulinuxtricks.wordpress.com/2007/11/21/cli-magic-video-conversion-with-mencoder/</guid>
		<description><![CDATA[Mencoder is part of the MPlayer media player package. While MPlayer can play audio and video files, mencoder converts and manages multimedia files. The application has a ton of graphical user interfaces, but you can use it from the command line to produce video files in almost any format you want. Here&#8217;s how. Among the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gnulinuxtricks.wordpress.com&amp;blog=2137780&amp;post=7&amp;subd=gnulinuxtricks&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div class="xar-clearleft">
<p><a href="http://www.mplayerhq.hu/">Mencoder</a><br />
is part of the MPlayer media player package. While MPlayer can play<br />
audio and video files, mencoder converts and manages multimedia files.<br />
The application has a ton of graphical user interfaces, but you can use<br />
it from the command line to produce video files in almost any format<br />
you want. Here&#8217;s how.</p>
</p></div>
<div class="xar-align-left">
<p>
Among<br />
the file types mencoder can handle are MPEG/VOB, AVI, ASF/WMA/WMV, RM,<br />
QT/MOV/MP4, Ogg/OGM, MKV, VIVO, FLI, and FLV. The command syntax is<br />
straightforward despite a wealth of options. There&#8217;s little mencoder<br />
can&#8217;t do when it comes to multimedia conversion.
</p>
<p>
Here&#8217;s a simple command that converts an MPG file to AVI format:
</p>
<pre>mencoder file.mpg -o file.avi -ovc lavc -oac lavc </pre>
<p>-ovc and -oac represent the options for the video and audio<br />
codecs that mencoder will use. To find out what video codecs are<br />
installed on your system, use mencoder -ovc help and mencoder -oac<br />
help.</p>
<p>
&nbsp;
</p>
<p>Suppose you need a file with no compression on the audio part and<br />
decide to use PCM. You can specify the type of audio codec you want by<br />
using the acodec option:
</p>
<pre>mencoder file.mpg -o file.avi -ovc lavc -oac lavc -lavcopts acodec=pcm </pre>
<p>
When it comes to MP3 compression, you can also choose a bitrate using abitrate:
</p>
<pre>mencoder file.mpg -o file.avi -ovc lavc -oac lavc -lavcopts acodec=libmp3lame:abitrate=128 </pre>
<p>You can use lameopts if you have libmp3lame installed and want to<br />
add extra options to the encoding process. You can also create files<br />
with variable bit rate audio compression:
</p>
<pre>mencoder file -o file.avi -ovc lavc -oac mp3lame -lameopts vbr=2:q=3 </pre>
<p>
where q can be any number between 0 and 9.
</p>
<p>
You can do the same thing with the video part of the file:
</p>
<pre>mencoder file.mpg -o file.avi -ovc lavc -oac lavc -lavcopts acodec=libmp3lame:abitrate=128 vcodec=xvid </pre>
<p>If you don&#8217;t want to use video compression, try vcodec=copy. With<br />
that option, the frames will be copied one by one from the source file.
</p>
<p>
You can use xvid or divx directly, without going through lavc:
</p>
<pre>mencoder -ovc xvid -oac mp3lame -o destination.avi source.avi </pre>
<p>
If you need customized quality, you can add a few options to the XviD compression:
</p>
<pre>mencoder -ovc xvid -oac mp3lame -xvidencopts bitrate=878 -o destination.avi source.avi </pre>
<p>
The higher the bitrate, the better quality the video file will be. The downside is a larger file size.
</p>
<p>Now let&#8217;s get fancy and make an XviD copy of a DVD using two passes.<br />
During the first pass, mencoder analyzes the content of the file; on<br />
the second pass mencoder encodes the new file based on the information<br />
obtained. By using two passes you can produce a better compressed file,<br />
but you&#8217;ll have to wait a little longer for it, and you&#8217;ll probably see<br />
CPU usage at 90% during the conversion:
</p>
<pre>mencoder dvd:// -oac mp3lame -ovc xvid -xvidencopts pass=1 -o /dev/null

mencoder dvd:// -oac mp3lame -ovc xvid -xvidencopts pass=2:bitrate=800 -o xvidfile.avi</pre>
<p>You can use whatever bitrate option you want. If you need to squeeze<br />
a DVD into a 700MB XviD file, you could use the following command,<br />
which forces the file size of the resulting AVI to 700MB.:
</p>
<pre>mencoder dvd:// -ovc xvid -oac mp3lame -xvidencopts bitrate=-700000 -o file.avi</pre>
<p>If you don&#8217;t like the CPU being used to the max and want to leave<br />
resources for launching other applications, use the nice option, which<br />
will run the program with the lowest priority when it comes to process<br />
scheduling:
</p>
<pre>nice -n 19 mencoder dvd:// -ovc xvid -oac mp3lame -xvidencopts bitrate=-700000 -o file.avi</pre>
<p>Suppose you have a folder full of small video files of different<br />
types and would like to merge them into one big movie for easy<br />
watching. First, rename them so that they&#8217;re in the order you want them<br />
to appear in the final video, then use:
</p>
<pre>mencoder * -o output.avi</pre>
<p>
If you want to add a particular audio file to a movie, use:
</p>
<pre>mencoder source.avi -o destination.avi -ovc copy -oac mp3lame -audiofile file.wav (for uncompressed files)

mencoder source.avi -o destination.avi -ovc copy -oac copy -audiofile file.mp3 (for compressed files) </pre>
<p>
To convert a video file to run on a device running <a href="http://ipodlinux.org/">iPodLinux</a>, use:
</p>
<pre>mencoder -ovc raw -ofps 15 -oac pcm -vf scale=176:-2,expand=176:132,format=bgr16 input.file -o output.avi</pre>
<p>
This produces a RAW AVI file with uncompressed audio data and scales it so it fits the Nano&#8217;s tiny screen perfectly.
</p>
<p>I have a Pocket PC that I sometimes bring with me on business trips.<br />
I take a couple of movies I haven&#8217;t seen in a while and convert them to<br />
fit on a 512MB SD card:
</p>
<pre>mencoder -oac mp3lame -lameopts mode=3:preset=24 -ovc lavc -lavcopts vcodec=mpeg4:vhq:vbitrate=384:keyint=250 -vop expand="320:240" -o outputfile.avi inputfile.avi</pre>
<p>
or
</p>
<pre>mencoder input.avi -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=200:abitrate=48 -vop scale=320:240 -oac copy -o output.avi</pre>
<p>The difference here is that the latter command scales the file and<br />
the former fills the PDA&#8217;s 320&#215;240-pixel screen with the movie.
</p>
<p>
If you have a webcam and want to record the output, use:
</p>
<pre>mencoder tv:// -tv driver=v4l:device=/dev/video0:width=640:height=480:forceaudio -ovc lavc -oac lavc -lavcopts vcodec=mpeg4:acodec=mp3 -ffourcc divx -o test.avi</pre>
<p>
The command records anything output by /dev/video0 in 640&#215;480 resolution, using DivX with MP3 audio as an output result.
</p>
<p>As you can see, you can use mencoder to convert almost any type of<br />
video file in several ways. It works fast, it works well, and I<br />
wouldn&#8217;t change it for any other application, be it GUI-friendly or<br />
not. </p>
<p>
However, if you feel you need a graphical interface to convert videos, I suggest one of the following: <a href="http://sf.net/projects/kmencoder/">KMencoder</a>, <a href="http://www.libsdl.de/projects/konverter/">Konverter</a>, <a href="http://kmenc15.sf.net/">Kmenc15</a>, <a href="http://gmencoder.sf.net/">GMencoder</a>, <a href="http://untrepid.com/acidrip/">AcidRip</a> or <a href="http://jahjah.free.fr/morphos/">MenGUI</a>.
</p>
</p></div>
<div class="xar-align-left">
<p><em>Razvan<br />
T. Coloja has published more than 150 Linux and IT-related articles in<br />
print and online magazines. He is an editor for a Romanian magazine and<br />
one of the maintainers and editors of www.mylro.org, a Romanian<br />
Linux/OSS portal and community.<br /></em></p>
<p><em>source:<br /><a href="http://www.linux.com/feature/121385">http://www.linux.com/feature/121385</a><br /></em></p>
</p></div>
<p class="poweredbyperformancing">Powered by <a href="http://scribefire.com/">ScribeFire</a>.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/gnulinuxtricks.wordpress.com/7/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/gnulinuxtricks.wordpress.com/7/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gnulinuxtricks.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gnulinuxtricks.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gnulinuxtricks.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gnulinuxtricks.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/gnulinuxtricks.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/gnulinuxtricks.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/gnulinuxtricks.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/gnulinuxtricks.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gnulinuxtricks.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gnulinuxtricks.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gnulinuxtricks.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gnulinuxtricks.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gnulinuxtricks.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gnulinuxtricks.wordpress.com/7/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gnulinuxtricks.wordpress.com&amp;blog=2137780&amp;post=7&amp;subd=gnulinuxtricks&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gnulinuxtricks.wordpress.com/2007/11/21/cli-magic-video-conversion-with-mencoder/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/75126d0fcfa68e78d34a6eaced8cad95?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">tshrinivasan</media:title>
		</media:content>
	</item>
		<item>
		<title>Solving resource contention problems with fuser</title>
		<link>http://gnulinuxtricks.wordpress.com/2007/11/16/solving-resource-contention-problems-with-fuser/</link>
		<comments>http://gnulinuxtricks.wordpress.com/2007/11/16/solving-resource-contention-problems-with-fuser/#comments</comments>
		<pubDate>Fri, 16 Nov 2007 14:46:31 +0000</pubDate>
		<dc:creator>tshrinivasan</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://gnulinuxtricks.wordpress.com/2007/11/16/solving-resource-contention-problems-with-fuser/</guid>
		<description><![CDATA[Have you ever tried tounmount your USB thumb drive only to get the message &#8220;device is busy&#8221;?Like me, you probably thought, &#8220;I know I closed that file managerwindow. What&#8217;s keeping it busy now?&#8221; fuseris a command that can answer that question for you, along with similarquestions about what processes are using what files or sockets. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gnulinuxtricks.wordpress.com&amp;blog=2137780&amp;post=6&amp;subd=gnulinuxtricks&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div class="xar-clearleft">	
<p>Have you ever tried to<br />unmount your USB thumb drive only to get the message &#8220;device is busy&#8221;?<br />Like me, you probably thought, &#8220;I know I closed that file manager<br />window. What&#8217;s keeping it busy now?&#8221; <a href="http://linux.die.net/man/1/fuser">fuser</a><br />is a command that can answer that question for you, along with similar<br />questions about what processes are using what files or sockets.</p>
</p></div>
<p>	
<div class="xar-align-left">	
<p>The<br />fuser command command takes as an argument either a file path, the name<br />of a mounted filesystem, or a namespace/port combination (eg.<br />Telnet/TCP). If the specified resource is being used, fuser displays<br />the name of the resource along with the ID of each process accessing<br />it, followed by a letter signifying the type of access the process has.<br />The following is a list of possible access types:</p>
<ul>
<li>c &#8212; the process&#8217;s current directory was specified</li>
<li>e &#8212; the process&#8217;s executable file was specified</li>
<li>f &#8212; the process has the specified file open for reading</li>
<li>F &#8212; the process has the specified file open for writing</li>
<li>r &#8212; the process is rooted at the specified directory</li>
<li>m &#8212; the process has the specified file memory mapped or loaded as a shared library</li>
</ul>
<p>In the USB drive example above, if you type <code>fuser -v -m /media/usbdrive</code>, fuser reports back with something like:</p>
<pre>                  USER    PID  ACCESS COMMAND

/media/usbdrive:   duane   4533 ..c.. bash</pre>
<p>The <code>-m</code> tells fuser that you are specifying a mount point (or a file on that mount point) and the <code>-v</code><br />tells fuser that you want verbose output, which gives you the column<br />headers and displays the owner of the process. Looking at the output<br />you can see that the ID of the process that&#8217;s accessing the USB<br />thumbdrive is 4533. If you would like to know more information about<br />that process, you can run the command <code>ps aux | grep 4533</code>. If you just want to kill the process so you can unmount the drive, you can add <code>-k</code><br />to fuser&#8217;s command line and all processes that are accessing the<br />specified mount point will be killed. If you are unsure about killing<br />the process without reviewing it first, you can add <code>-i</code> with <code>-k</code> to prompt you before you kill each process.</p>
<p>fuser can also tell you which processes are accessing network ports.<br />For example, if you try to start an FTP server and you get a message<br />indicating that the port is busy, you can run the command <code>fuser -v -n tcp 21</code> and fuser will display</p>
<pre>          USER  PID  ACCESS COMMAND

21/tcp:    root  4391 F.... vsftpd</pre>
<p>This means that the vsftpd FTP server is already running on port 21.<br />Here again you can automatically kill the process by adding <code>-k</code> and prompt before killing by adding <code>-i</code>. If you are not familiar with <a href="http://en.wikipedia.org/wiki/List_of_TCP_and_UDP_port_numbers">the ports on which services run</a>, you can specify the name of the service to fuser instead (eg. <code>fuser -n tcp ftp</code>).</p>
<p>fuser is a useful command-line tool that can give you the<br />information you need to free up resources so you can safely unmount a<br />USB drive or start your FTP server. fuser can also be used in scripts<br />to determine whether a file is being used before deleting it, whether a<br />port that your application wants is already being used by another<br />service, or whether a mounted filesystem is being used before you<br />unmount it to perform a filesystem check. As with every other command,<br />you can learn more about fuser and its switches by looking at its man<br />page.</p>
<p>					        </div>
<div class="xar-align-left">	
<p><em>Duane<br />Odom is a computer programmer for the US Department of Defense and a<br />freelance writer. He has been a Linux user since 2001.<br /></em></p>
<p><em><br />source:<br /><a href="http://www.linux.com/feature/121049">http://www.linux.com/feature/121049</a><br /></em></p>
<p><em><br /></em></p>
<p>						</div>
<p class="poweredbyperformancing">Powered by <a href="http://scribefire.com/">ScribeFire</a>.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/gnulinuxtricks.wordpress.com/6/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/gnulinuxtricks.wordpress.com/6/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gnulinuxtricks.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gnulinuxtricks.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gnulinuxtricks.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gnulinuxtricks.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/gnulinuxtricks.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/gnulinuxtricks.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/gnulinuxtricks.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/gnulinuxtricks.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gnulinuxtricks.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gnulinuxtricks.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gnulinuxtricks.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gnulinuxtricks.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gnulinuxtricks.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gnulinuxtricks.wordpress.com/6/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gnulinuxtricks.wordpress.com&amp;blog=2137780&amp;post=6&amp;subd=gnulinuxtricks&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gnulinuxtricks.wordpress.com/2007/11/16/solving-resource-contention-problems-with-fuser/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/75126d0fcfa68e78d34a6eaced8cad95?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">tshrinivasan</media:title>
		</media:content>
	</item>
		<item>
		<title>Keeping separate history files for users who su to root</title>
		<link>http://gnulinuxtricks.wordpress.com/2007/11/16/keeping-separate-history-files-for-users-who-su-to-root/</link>
		<comments>http://gnulinuxtricks.wordpress.com/2007/11/16/keeping-separate-history-files-for-users-who-su-to-root/#comments</comments>
		<pubDate>Fri, 16 Nov 2007 14:43:30 +0000</pubDate>
		<dc:creator>tshrinivasan</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://gnulinuxtricks.wordpress.com/2007/11/16/keeping-separate-history-files-for-users-who-su-to-root/</guid>
		<description><![CDATA[THIS IS NOT INTENDED TO BE USED AS A SECURITY SOLUTION.If you&#8217;re like me and work for a company who has many linux admins all logging into servers and then su&#8217;ing to root, you may find this tip beneficial. It is simply 3 lines that you add to root&#8217;s .bash_profile which will keep separate history [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gnulinuxtricks.wordpress.com&amp;blog=2137780&amp;post=5&amp;subd=gnulinuxtricks&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span style="color:rgb(255, 0, 0);font-family:arial;font-size:85%;"><strong>THIS IS NOT INTENDED TO BE USED AS A SECURITY SOLUTION.</strong></span><br /><span style="font-family:Arial;">If<br />
you&#8217;re like me and work for a company who has many linux admins all<br />
logging into servers and then su&#8217;ing to root, you may find this tip<br />
beneficial. It is simply 3 lines that you add to root&#8217;s .bash_profile<br />
which will keep separate history files for each admin that su&#8217;s to root<br />
and the commands they ran. It will allow you to go back and see what<br />
the user did as root. Granted the user could delete the history file,<br />
but we are only interested in keeping separate history files and going<br />
back to review if necessary. You may need to implement a policy or have<br />
an agreement with the admins which states no one will delete the<br />
history files.</span><br /><span style="font-family:Arial;"></span><br /><span style="font-family:Arial;">So if you&#8217;re ready to try this out, fire up vi and add the below lines to root&#8217;s .bash_profile</span><br /><span style="font-family:Arial;"></span><br /><span style="font-family:arial;">export HISTSIZE=3000</span><br /><span style="font-family:arial;">export HISTFILESIZE=5000</span><br /><span style="font-family:arial;">export HISTFILE=/root/.bash_hist-$(who am i | awk &#8216;{print $1}&#8217;;exit)</span></p>
<p><span style="font-family:arial;">Save<br />
the file and you&#8217;re good to go. Now when an admin logs in, su&#8217;s to root<br />
and logs out; a hidden file will be created in the root directory<br />
called .bash_hist-userid</p>
<p>Here&#8217;s an example:</p>
<p>If user jsmith logged in and then su&#8217;d to root, you would see a file called <span style="font-weight:bold;">.bash_hist-jsmith</span> in the root home directory after the user logs out. Hope this helps <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> <br /></span><br /><span style="font-family:arial;">This tip is courtesy of my senior admin Steve V.</span><br /><span style="font-family:arial;"></span><br /><span style="font-family:arial;">Have fun!<br /></span></p>
<p><span style="font-family:arial;"><br />source:<br /><a href="http://moonpup.blogspot.com/2007/11/keeping-separate-history-files-for.html">http://moonpup.blogspot.com/2007/11/keeping-separate-history-files-for.html</a><br /></span></p>
<p class="poweredbyperformancing">Powered by <a href="http://scribefire.com/">ScribeFire</a>.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/gnulinuxtricks.wordpress.com/5/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/gnulinuxtricks.wordpress.com/5/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gnulinuxtricks.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gnulinuxtricks.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gnulinuxtricks.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gnulinuxtricks.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/gnulinuxtricks.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/gnulinuxtricks.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/gnulinuxtricks.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/gnulinuxtricks.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gnulinuxtricks.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gnulinuxtricks.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gnulinuxtricks.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gnulinuxtricks.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gnulinuxtricks.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gnulinuxtricks.wordpress.com/5/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gnulinuxtricks.wordpress.com&amp;blog=2137780&amp;post=5&amp;subd=gnulinuxtricks&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gnulinuxtricks.wordpress.com/2007/11/16/keeping-separate-history-files-for-users-who-su-to-root/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/75126d0fcfa68e78d34a6eaced8cad95?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">tshrinivasan</media:title>
		</media:content>
	</item>
		<item>
		<title>Which network interface is which?</title>
		<link>http://gnulinuxtricks.wordpress.com/2007/11/16/which-network-interface-is-which/</link>
		<comments>http://gnulinuxtricks.wordpress.com/2007/11/16/which-network-interface-is-which/#comments</comments>
		<pubDate>Fri, 16 Nov 2007 14:42:40 +0000</pubDate>
		<dc:creator>tshrinivasan</dc:creator>
				<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://gnulinuxtricks.wordpress.com/2007/11/16/which-network-interface-is-which/</guid>
		<description><![CDATA[Servers typically have more than one network interface card. In fact, at my company most linux servers have 5 cards. Just the other day we had to troubleshoot network connectivity with a box that we could not get back up on the network. To make matters worse, we had no idea which physical interface was [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gnulinuxtricks.wordpress.com&amp;blog=2137780&amp;post=4&amp;subd=gnulinuxtricks&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span style="font-size:100%;"><span style="font-family:arial;">Servers<br />
typically have more than one network interface card. In fact, at my<br />
company most linux servers have 5 cards. Just the other day we had to<br />
troubleshoot network connectivity with a box that we could not get back<br />
up on the network. To make matters worse, we had no idea which physical<br />
interface was which. This is where &#8216;ethtool&#8217; is your best friend. All<br />
we did was run the command below and we could see which physical card<br />
was giving us the problem.<br />
<blockquote>ethtool -p eth2 5</p></blockquote>
<p>The result<br />
of this command will blink the light on the network card eth2 for 5<br />
seconds. Of course you can set whatever number of seconds you like.<br />
Next time you&#8217;re not sure which card is which, fire up good &#8216;ol ethtool.</p>
<p>source:<br /><a href="http://moonpup.blogspot.com/2007/11/which-network-interface-is-which.html">http://moonpup.blogspot.com/2007/11/which-network-interface-is-which.html</a><br /></span></span></p>
<p class="poweredbyperformancing">Powered by <a href="http://scribefire.com/">ScribeFire</a>.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/gnulinuxtricks.wordpress.com/4/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/gnulinuxtricks.wordpress.com/4/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gnulinuxtricks.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gnulinuxtricks.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gnulinuxtricks.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gnulinuxtricks.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/gnulinuxtricks.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/gnulinuxtricks.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/gnulinuxtricks.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/gnulinuxtricks.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gnulinuxtricks.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gnulinuxtricks.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gnulinuxtricks.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gnulinuxtricks.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gnulinuxtricks.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gnulinuxtricks.wordpress.com/4/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gnulinuxtricks.wordpress.com&amp;blog=2137780&amp;post=4&amp;subd=gnulinuxtricks&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gnulinuxtricks.wordpress.com/2007/11/16/which-network-interface-is-which/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/75126d0fcfa68e78d34a6eaced8cad95?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">tshrinivasan</media:title>
		</media:content>
	</item>
		<item>
		<title>How to &#8216;grep&#8217; in color</title>
		<link>http://gnulinuxtricks.wordpress.com/2007/11/16/how-to-grep-in-color/</link>
		<comments>http://gnulinuxtricks.wordpress.com/2007/11/16/how-to-grep-in-color/#comments</comments>
		<pubDate>Fri, 16 Nov 2007 14:41:35 +0000</pubDate>
		<dc:creator>tshrinivasan</dc:creator>
				<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://gnulinuxtricks.wordpress.com/2007/11/16/how-to-grep-in-color/</guid>
		<description><![CDATA[Have you ever had to grep for words in a log file or document and wish they jumped out at you? Well here&#8217;s a real easy way to accomplish this by using alias.Modify the .bashrc file in your home directory by adding the following line:alias grep=&#8217;grep &#8211;color=auto&#8217;Save the file and log out and back in [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gnulinuxtricks.wordpress.com&amp;blog=2137780&amp;post=3&amp;subd=gnulinuxtricks&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span style="font-size:100%;"><span style="font-family:arial;">Have<br />
you ever had to grep for words in a log file or document and wish they<br />
jumped out at you? Well here&#8217;s a real easy way to accomplish this by<br />
using alias.</span><br /><span style="font-family:arial;"><br />Modify the .bashrc file in your home directory by adding the following line:</span><br /><span style="font-family:arial;"><br />alias grep=&#8217;grep &#8211;color=auto&#8217;</span><br /><span style="font-family:arial;"><br />Save<br />
the file and log out and back in again. If you don&#8217;t want to logout<br />
just type the above on the command line and hit enter. Now grep a log<br />
file for a keyword and see what comes back! Here&#8217;s what I get when I<br />
grep on .i386 in the /var/log/messages file</span></p>
<p><span style="font-family:arial;">[root@testbox ~]# cat /var/log/messages|grep i386</p>
<p></span><span style="font-family:arial;">Nov 13 07:07:54 testbox yum: Updated: gnome-python2-extras &#8211; 2.19.1-10.fc8.<span style="color:rgb(255, 0, 0);">i386</span></span><br /><span style="font-family:arial;">Nov 13 07:08:01 testbox yum: Updated: elfutils-libelf &#8211; 0.131-1.fc8.<span style="color:rgb(255, 0, 0);">i386</span></span><br /><span style="font-family:arial;">Nov 13 07:08:03 testbox yum: Updated: link-grammar &#8211; 4.2.5-1.fc8.<span style="color:rgb(255, 0, 0);">i386</span></span><br /><span style="font-family:arial;">Nov 13 07:08:27 testbox yum: Updated: tomboy &#8211; 0.8.1-3.fc8.<span style="color:rgb(255, 0, 0);">i386</span></span><br /><span style="font-family:arial;">Nov 13 07:08:28 testbox yum: Updated: gnome-python2-libegg &#8211; 2.19.1-10.fc8.<span style="color:rgb(255, 0, 0);">i386</p>
<p>source:<br /><a href="http://moonpup.blogspot.com/2007/11/how-to-grep-in-color.html">http://moonpup.blogspot.com/2007/11/how-to-grep-in-color.html</a><br /></span></span></span></p>
<p class="poweredbyperformancing">Powered by <a href="http://scribefire.com/">ScribeFire</a>.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/gnulinuxtricks.wordpress.com/3/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/gnulinuxtricks.wordpress.com/3/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gnulinuxtricks.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gnulinuxtricks.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gnulinuxtricks.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gnulinuxtricks.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/gnulinuxtricks.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/gnulinuxtricks.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/gnulinuxtricks.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/gnulinuxtricks.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gnulinuxtricks.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gnulinuxtricks.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gnulinuxtricks.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gnulinuxtricks.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gnulinuxtricks.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gnulinuxtricks.wordpress.com/3/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gnulinuxtricks.wordpress.com&amp;blog=2137780&amp;post=3&amp;subd=gnulinuxtricks&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gnulinuxtricks.wordpress.com/2007/11/16/how-to-grep-in-color/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/75126d0fcfa68e78d34a6eaced8cad95?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">tshrinivasan</media:title>
		</media:content>
	</item>
	</channel>
</rss>
