<?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>Linatrix's Blog</title>
	<atom:link href="http://linatrix.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://linatrix.wordpress.com</link>
	<description></description>
	<lastBuildDate>Tue, 21 Dec 2010 07:12:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='linatrix.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Linatrix's Blog</title>
		<link>http://linatrix.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://linatrix.wordpress.com/osd.xml" title="Linatrix&#039;s Blog" />
	<atom:link rel='hub' href='http://linatrix.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Recovering Ubuntu After Installing Windows</title>
		<link>http://linatrix.wordpress.com/2009/02/25/recovering-ubuntu-after-installing-windows/</link>
		<comments>http://linatrix.wordpress.com/2009/02/25/recovering-ubuntu-after-installing-windows/#comments</comments>
		<pubDate>Wed, 25 Feb 2009 10:22:06 +0000</pubDate>
		<dc:creator>linatrix</dc:creator>
				<category><![CDATA[1]]></category>

		<guid isPermaLink="false">http://linatrix.wordpress.com/2009/02/25/recovering-ubuntu-after-installing-windows/</guid>
		<description><![CDATA[Using the Ubuntu Desktop/Live CD Quick Start This option will use the Desktop/Live CD to install Grub into your MBR (Master Boot Record). This option will overwrite your Windows Boot Loader. It is OK to do this, in fact that is the goal of this how to (in order to boot Ubuntu) B) 1. Boot [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=linatrix.wordpress.com&amp;blog=5618077&amp;post=111&amp;subd=linatrix&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Using the Ubuntu Desktop/Live CD  Quick Start  This option will use the Desktop/Live CD to install Grub into your MBR (Master Boot Record). This option will overwrite your Windows Boot Loader. It is OK to do this, in fact that is the goal of this how to (in order to boot Ubuntu) B)  1. Boot the Desktop/Live CD. (Use Ubuntu 8.04 or later)  2. Open a terminal (Applications -&gt; Accessories -&gt; Terminal)  3. Start grub as root with the following command :      *        sudo grub  4. You will get a grub prompt (see below) which we will use to find the root partition and install grub to the MBR (hd0)      *                 [ Minimal BASH-like line editing is supported.   For                the   first   word,  TAB  lists  possible  command                completions.  Anywhere else TAB lists the possible                completions of a device/filename. ]        grub&gt;        Type the following and press enter:        find /boot/grub/stage1        If you get &#8220;Error 15: File not found&#8221;, try the following:        find /grub/stage1        Using this information, set the root device (fill in X,Y with whatever the find command returned):        grub&gt; root (hdX,Y)        Install Grub:        grub&gt; setup (hd0)        Exit Grub:        grub&gt; quit  5. Reboot (to hard drive). Grub should be installed and both Ubuntu and Windows should have been automatically detected.  6. If, after installing grub, Windows will not boot you may need to edit /boot/grub/menu.lst (That is a small &#8220;L&#8221; and not the number 1 in menu.lst)      * Open a terminal and enter :         gksu gedit /boot/grub/menu.lst        Or, in Kubuntu:         kdesu kate /boot/grub/menu.lst        Your Windows stanza should look something like this :         title Windows XP/Vista # You can use any title you wish, this will appear on your grub boot menu        rootnoverify (hd0,0) #(hd0,0) will be most common, you may need to adjust accordingly        makeactive        chainloader +1</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/linatrix.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/linatrix.wordpress.com/111/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/linatrix.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/linatrix.wordpress.com/111/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/linatrix.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/linatrix.wordpress.com/111/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/linatrix.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/linatrix.wordpress.com/111/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/linatrix.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/linatrix.wordpress.com/111/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/linatrix.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/linatrix.wordpress.com/111/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/linatrix.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/linatrix.wordpress.com/111/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=linatrix.wordpress.com&amp;blog=5618077&amp;post=111&amp;subd=linatrix&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://linatrix.wordpress.com/2009/02/25/recovering-ubuntu-after-installing-windows/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6f1396dbdb387891789219f2ba387a97?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">linatrix</media:title>
		</media:content>
	</item>
		<item>
		<title>Snort</title>
		<link>http://linatrix.wordpress.com/2009/02/21/dynamic-host-configuration-protocol-daemon/</link>
		<comments>http://linatrix.wordpress.com/2009/02/21/dynamic-host-configuration-protocol-daemon/#comments</comments>
		<pubDate>Sat, 21 Feb 2009 12:01:31 +0000</pubDate>
		<dc:creator>linatrix</dc:creator>
				<category><![CDATA[1]]></category>

		<guid isPermaLink="false">http://linatrix.wordpress.com/2009/02/21/dynamic-host-configuration-protocol-daemon/</guid>
		<description><![CDATA[Snort NIDS Features: 1. Network Intrusion Detection System (NIDS) 2. Packet Sniffer 3. Packet Logger &#8211; logs using TCPDump format Tasks: 1. Download and install Snort NIDS a. snort.org b. Confirm MD5SUM: &#8216;md5sum snort-2.8.0.2.tar.gz&#8217; Compare to snort-2.8.0.2.tar.gz.md5 c. Import GPG key used to sign the current release of Snort d. gpg &#8211;verify snort-2.8.0.2.tar.gz.sig snort-2.8.0.2.tar.gz Requirements: [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=linatrix.wordpress.com&amp;blog=5618077&amp;post=86&amp;subd=linatrix&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="margin-bottom:0;"><span style="font-size:x-large;"><strong>Snort NIDS</strong></span></p>
<p style="margin-bottom:0;">
<p style="margin-bottom:0;">Features:</p>
<p style="margin-bottom:0;">1. Network Intrusion Detection System (NIDS)</p>
<p style="margin-bottom:0;">
<p style="margin-bottom:0;">2. Packet Sniffer</p>
<p style="margin-bottom:0;">
<p style="margin-bottom:0;">3. Packet Logger &#8211; logs using TCPDump format</p>
<p style="margin-bottom:0;">
<p style="margin-bottom:0;">
<p style="margin-bottom:0;">Tasks:</p>
<p style="margin-bottom:0;">
<p style="margin-bottom:0;">1. Download and install Snort NIDS</p>
<p style="margin-bottom:0;">a. snort.org</p>
<p style="margin-bottom:0;">b. Confirm MD5SUM: &#8216;md5sum snort-2.8.0.2.tar.gz&#8217; Compare to snort-2.8.0.2.tar.gz.md5</p>
<p style="margin-bottom:0;">c. Import GPG key used to sign the current release of Snort</p>
<p style="margin-bottom:0;">d. gpg &#8211;verify snort-2.8.0.2.tar.gz.sig snort-2.8.0.2.tar.gz</p>
<p style="margin-bottom:0;">
<p style="margin-bottom:0;">
<p style="margin-bottom:0;">Requirements:</p>
<p style="margin-bottom:0;">
<p style="margin-bottom:0;">1. gcc &#8211; C compiler</p>
<p style="margin-bottom:0;">2. make &#8211; creates binaries</p>
<p style="margin-bottom:0;">3. libpcre &#8211; Provides access to Perl Compatible RegExes</p>
<p style="margin-bottom:0;">4. mysql-devel* &#8211; provides access to MySQL</p>
<p style="margin-bottom:0;">5. libpcap* &#8211; provides the TCPDump, packet capture library</p>
<p style="margin-bottom:0;">e. Extract and install (compile) Snort NIDS</p>
<p style="margin-bottom:0;">e1. tar -xzvf snort-2.8.0.2.tar.gz &#8211; creates top-level directory</p>
<p style="margin-bottom:0;">e2. ./configure &#8211;with-mysql &#8211;enable-dynamicplugin &#8211; checks for prerequisites, including: mysql-devel, libpcre, gcc, make, etc.</p>
<p style="margin-bottom:0;">e3. make &#8211; creates binaries</p>
<p style="margin-bottom:0;">e4. su (as &#8216;root&#8217;) and execute &#8216;make install&#8217; &#8211; places binaries in /usr/local/ accessible location</p>
<p style="margin-bottom:0;">
<p style="margin-bottom:0;">Usage &#8211; Packet Sniffer:</p>
<p style="margin-bottom:0;">
<p style="margin-bottom:0;">1. snort -v -i eth0 &#8211; reveals layers 3 &amp; 4 of the OSI model</p>
<p style="margin-bottom:0;">2. snort -vde -i eth0 &#8211; reveals layers 2-7</p>
<p style="margin-bottom:0;">3. snort -vde -i eth0 tcp port 23</p>
<p style="margin-bottom:0;">
<p style="margin-bottom:0;">Usage &#8211; Packet Logger:</p>
<p style="margin-bottom:0;">
<p style="margin-bottom:0;">1. snort -v -i eth0 -l ./ tcp port 23 &#8211; logs binary file in current directory with Unix Epoch suffix</p>
<p style="margin-bottom:0;">2. snort -b -i eth0 &#8211; attempts to log in: /var/log/snort</p>
<p style="margin-bottom:0;">3. snort -b -L test.snort.log -i eth0 &#8211; creates: /var/log/snort/test.snort.log.UnixEpochDate</p>
<p style="margin-bottom:0;">Note: Snort drops less packets when run in binary logging mode than in verbose, dump-to-screen, mode</p>
<p style="margin-bottom:0;">
<p style="margin-bottom:0;"><strong>Snort NIDS Setup</strong></p>
<p style="margin-bottom:0;">
<p style="margin-bottom:0;">1. Setup MySQL DB environment</p>
<p style="margin-bottom:0;">a. create database snort;</p>
<p style="margin-bottom:0;">b. grant insert,select on root.* to snort@localhost;</p>
<p style="margin-bottom:0;">c. set password for snort@localhost=password(&#8216;abc123&#8242;);</p>
<p style="margin-bottom:0;">d. grant create,insert,select,delete,update on snort.* to snort@localhost;</p>
<p style="margin-bottom:0;">e. grant create,insert,select,delete,update on snort.* to snort;</p>
<p style="margin-bottom:0;">
<p style="margin-bottom:0;">2. Import MySQL DB schema</p>
<p style="margin-bottom:0;">a. mysql -u root -p &lt; /home/linuxcbt/temp/Snort/snort-2.8.0.2/schemas/create_mysql snort</p>
<p style="margin-bottom:0;">
<p style="margin-bottom:0;">3. Setup Snort NIDS /etc/snort environment</p>
<p style="margin-bottom:0;">a. mkdir /etc/snort &amp;&amp; cp -v /home/linuxcbt/temp/Snort/snort-2.8.0.2/etc/* /etc/snort</p>
<p style="margin-bottom:0;">
<p style="margin-bottom:0;">Note: Snort&#8217;s primary configuration file for NIDS mode: /etc/snort/snort.conf</p>
<p style="margin-bottom:0;">4. Download the latest Snort rules file and extract to: /etc/snort/rules</p>
<p style="margin-bottom:0;">Note: Snort rules are available as follows:</p>
<p style="margin-bottom:0;">
<p style="margin-bottom:0;">1. Registered users: with delay</p>
<p style="margin-bottom:0;">2. Subscriber: no delay &#8211; NOT FREE</p>
<p style="margin-bottom:0;">3. Unregistered users: release version (very old) of rules</p>
<p style="margin-bottom:0;">4. Various third-party sites: i.e. Bleeding Snort, etc.</p>
<p style="margin-bottom:0;">a. cd /etc/snort &amp;&amp; tar -xzvf snortrules*</p>
<p style="margin-bottom:0;">
<p style="margin-bottom:0;">5. Configure: /etc/snort/snort.conf to use MySQL and rules</p>
<p style="margin-bottom:0;">a. MySQL &#8211; output</p>
<p style="margin-bottom:0;">b. Rules &#8211; path to the rules</p>
<p style="margin-bottom:0;">6. Start Snort in NIDS mode</p>
<p style="margin-bottom:0;">a. snort -i eth0 -c /etc/snort/snort.conf -D</p>
<p style="margin-bottom:0;">7. Setup BASE web analysis application</p>
<p style="margin-bottom:0;">a. wget http://easynews.dl.sourceforge.net/sourceforge/adodb/adodb480.tgz</p>
<p style="margin-bottom:0;">b. tar -xzvf adodb480.tgz</p>
<p style="margin-bottom:0;">Note: adodb480.tgz &#8211; provides DB-connectivity for BASE to MySQL</p>
<p style="margin-bottom:0;">
<p style="margin-bottom:0;">c. Download BASE from http://base.secureideas.net</p>
<p style="margin-bottom:0;">d. Configure: base_conf.php file</p>
<p style="margin-bottom:0;">d1. $BASE_urlpath = &#8216;/base&#8217;;</p>
<p style="margin-bottom:0;">d2. $Dblib_path = &#8220;/var/www/html/adodb&#8221;;</p>
<p style="margin-bottom:0;">d3. $Dbtype = &#8216;mysql&#8217;;</p>
<p style="margin-bottom:0;">d4. alert_dbname = &#8216;snort&#8217;;</p>
<p style="margin-bottom:0;">d5. alert_host = &#8216;localhost&#8217;;</p>
<p style="margin-bottom:0;">d6. alert_password = &#8216;abc123&#8242;;</p>
<p style="margin-bottom:0;">Note: Ensure that your Apache instance has PHP support</p>
<p style="margin-bottom:0;">Note: Ensure that &#8216;php-mysql*&#8217; package is installed</p>
<p style="margin-bottom:0;">
<p style="margin-bottom:0;">8. Connect to BASE via web browser</p>
<p style="margin-bottom:0;">
<p style="margin-bottom:0;">Note: Consider protecting &#8216;/base&#8217; application using HTDIGEST or basic auth</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/linatrix.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/linatrix.wordpress.com/86/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/linatrix.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/linatrix.wordpress.com/86/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/linatrix.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/linatrix.wordpress.com/86/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/linatrix.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/linatrix.wordpress.com/86/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/linatrix.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/linatrix.wordpress.com/86/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/linatrix.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/linatrix.wordpress.com/86/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/linatrix.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/linatrix.wordpress.com/86/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=linatrix.wordpress.com&amp;blog=5618077&amp;post=86&amp;subd=linatrix&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://linatrix.wordpress.com/2009/02/21/dynamic-host-configuration-protocol-daemon/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6f1396dbdb387891789219f2ba387a97?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">linatrix</media:title>
		</media:content>
	</item>
		<item>
		<title>Trivial File Transfer Protocol Daemon (TFTPD)</title>
		<link>http://linatrix.wordpress.com/2009/02/21/logical-volume-management-lvm/</link>
		<comments>http://linatrix.wordpress.com/2009/02/21/logical-volume-management-lvm/#comments</comments>
		<pubDate>Sat, 21 Feb 2009 11:28:29 +0000</pubDate>
		<dc:creator>linatrix</dc:creator>
				<category><![CDATA[1]]></category>

		<guid isPermaLink="false">http://linatrix.wordpress.com/2009/02/21/logical-volume-management-lvm/</guid>
		<description><![CDATA[Features: 1. Fast, connectionless (UDP), file transfers 2. Often used to move files to and fro networked systems (VOIP Phones, PXE configurations, Router/Firewall/Switch configurations, etc.) Note: Implemented as 2 components: a. Client &#8211; tftp-*rpm b. Server &#8211; tftp-server* Tasks: 1. Install TFTP client a. yum -y install tftp 2. Install TFTP server a. yum -y [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=linatrix.wordpress.com&amp;blog=5618077&amp;post=69&amp;subd=linatrix&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="margin-bottom:0;">
<p style="margin-bottom:0;">Features:</p>
<p style="margin-bottom:0;">1. Fast, connectionless (UDP), file transfers</p>
<p style="margin-bottom:0;">2. Often used to move files to and fro networked systems (VOIP Phones, PXE configurations, Router/Firewall/Switch configurations, etc.)</p>
<p style="margin-bottom:0;">
<p style="margin-bottom:0;">Note: Implemented as 2 components:</p>
<p style="margin-bottom:0;">
<p style="margin-bottom:0;">a. Client &#8211; tftp-*rpm</p>
<p style="margin-bottom:0;">b. Server &#8211; tftp-server*</p>
<p style="margin-bottom:0;">Tasks:</p>
<p style="margin-bottom:0;">
<p style="margin-bottom:0;">1. Install TFTP client</p>
<p style="margin-bottom:0;">a. yum -y install tftp</p>
<p style="margin-bottom:0;">2. Install TFTP server</p>
<p style="margin-bottom:0;">a. yum -y install tftp-server</p>
<p style="margin-bottom:0;">Note: this also install &#8216;xinetd&#8217; dependency</p>
<p style="margin-bottom:0;">
<p style="margin-bottom:0;">3. Configure and start &#8216;tftp&#8217; via &#8216;xinetd&#8217;</p>
<p style="margin-bottom:0;">a. /etc/xinetd.d/tftp &#8211; modify this file prior to starting &#8216;TFTPD&#8217;</p>
<p style="margin-bottom:0;">b. service xinetd start &#8211; to start XINETD</p>
<p style="margin-bottom:0;">Note: TFTPD listens to UDP:69, by default</p>
<p style="margin-bottom:0;">Note: use &#8216;netstat -nulp | grep 69&#8242; to check if &#8216;xinetd&#8217; is listening</p>
<p style="margin-bottom:0;">
<p style="margin-bottom:0;">4. Copy Cisco Router configuration to TFTP server</p>
<p style="margin-bottom:0;">a. copy running-config tftp://192.168.75.199</p>
<p style="margin-bottom:0;">b. setsebool -P tftpd_disable_trans=1 &#8211; disables SELinux for TFTPD</p>
<p style="margin-bottom:0;">c. &#8216;service xinetd restart&#8217; &#8211; restart XINETD</p>
<p style="margin-bottom:0;">d. &#8216;chmod 666 linuxcbtrouter1.config&#8217; &#8211; to permit TFTPD to write</p>
<p style="margin-bottom:0;">5. Use &#8216;tftp&#8217; client to download &#8216;linuxcbtrouter1.config&#8217; file</p>
<p style="margin-bottom:0;">a. tftp 192.168.75.199 -c get linuxcbtrouter1.config</p>
<p style="margin-bottom:0;">b. tftp &#8211; enters interactive mode</p>
<p style="margin-bottom:0;">
<p style="margin-bottom:0;">Note: tftp client operates in both non-interactive and interactive modes</p>
<p style="margin-bottom:0;">
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/linatrix.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/linatrix.wordpress.com/69/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/linatrix.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/linatrix.wordpress.com/69/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/linatrix.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/linatrix.wordpress.com/69/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/linatrix.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/linatrix.wordpress.com/69/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/linatrix.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/linatrix.wordpress.com/69/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/linatrix.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/linatrix.wordpress.com/69/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/linatrix.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/linatrix.wordpress.com/69/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=linatrix.wordpress.com&amp;blog=5618077&amp;post=69&amp;subd=linatrix&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://linatrix.wordpress.com/2009/02/21/logical-volume-management-lvm/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6f1396dbdb387891789219f2ba387a97?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">linatrix</media:title>
		</media:content>
	</item>
		<item>
		<title>Basic Provisioning of Partitions and File Systems</title>
		<link>http://linatrix.wordpress.com/2009/02/21/file-types-permissions-symlinks/</link>
		<comments>http://linatrix.wordpress.com/2009/02/21/file-types-permissions-symlinks/#comments</comments>
		<pubDate>Sat, 21 Feb 2009 11:15:43 +0000</pubDate>
		<dc:creator>linatrix</dc:creator>
				<category><![CDATA[1]]></category>

		<guid isPermaLink="false">http://linatrix.wordpress.com/2009/02/21/file-types-permissions-symlinks/</guid>
		<description><![CDATA[Features: 1. Ability to provision extra storage on-the-fly Steps: 1. Identify available storage a. &#8216;fdisk -l&#8217; &#8211; returns connected storage 2. Create partitions on desired hard drive: a. &#8216;fdisk /dev/sdb&#8217; &#8211; interacts with /dev/sdb drive b. &#8216;n&#8217; &#8211; to add a new partition c. &#8216;p&#8217; &#8211; primary d. &#8217;1&#8242; &#8211; start cylinder e. &#8216;+4096M&#8217; &#8211; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=linatrix.wordpress.com&amp;blog=5618077&amp;post=67&amp;subd=linatrix&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="margin-bottom:0;">Features:</p>
<p style="margin-bottom:0;">1. Ability to provision extra storage on-the-fly</p>
<p style="margin-bottom:0;">Steps:</p>
<p style="margin-bottom:0;">
<p style="margin-bottom:0;">1. Identify available storage</p>
<p style="margin-bottom:0;">a. &#8216;fdisk -l&#8217; &#8211; returns connected storage</p>
<p style="margin-bottom:0;">2. Create partitions on desired hard drive:</p>
<p style="margin-bottom:0;">a. &#8216;fdisk /dev/sdb&#8217; &#8211; interacts with /dev/sdb drive</p>
<p style="margin-bottom:0;">b. &#8216;n&#8217; &#8211; to add a new partition</p>
<p style="margin-bottom:0;">c. &#8216;p&#8217; &#8211; primary</p>
<p style="margin-bottom:0;">d. &#8217;1&#8242; &#8211; start cylinder</p>
<p style="margin-bottom:0;">e. &#8216;+4096M&#8217; &#8211; to indicate 4 Gigabytes</p>
<p style="margin-bottom:0;">f. &#8216;w&#8217; &#8211; to write the changes to the disk</p>
<p style="margin-bottom:0;">
<p style="margin-bottom:0;">Note: use &#8216;partprobe partition (/dev/sdb1)&#8217; to force a write to a hard drive&#8217;s partition table on a running system</p>
<p style="margin-bottom:0;">
<p style="margin-bottom:0;">Note: &#8216;fdisk&#8217; creates raw partitions</p>
<p style="margin-bottom:0;">
<p style="margin-bottom:0;">3. Overlay (format) the raw partition with a file system</p>
<p style="margin-bottom:0;">a. mke2fs -j /dev/sdb1 &#8211; this will write inodes to partition</p>
<p style="margin-bottom:0;">
<p style="margin-bottom:0;">4. Mount the file system in the Linux file system hierarchy:</p>
<p style="margin-bottom:0;">a. mkdir /home1 &amp;&amp; mount /dev/sdb1 /home1</p>
<p style="margin-bottom:0;">b. mount OR df -h &#8211; either will reveal that /dev/sdb1 is mounted</p>
<p style="margin-bottom:0;">
<p style="margin-bottom:0;">Note: lost+found directory is created for each distinct file system</p>
<p style="margin-bottom:0;">
<p style="margin-bottom:0;">5. Configure &#8216;/home1&#8242; to auto-mount when the system boots</p>
<p style="margin-bottom:0;">a. nano /etc/fstab and copy and modify the &#8216;/home&#8217; entry</p>
<p style="margin-bottom:0;">
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/linatrix.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/linatrix.wordpress.com/67/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/linatrix.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/linatrix.wordpress.com/67/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/linatrix.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/linatrix.wordpress.com/67/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/linatrix.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/linatrix.wordpress.com/67/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/linatrix.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/linatrix.wordpress.com/67/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/linatrix.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/linatrix.wordpress.com/67/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/linatrix.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/linatrix.wordpress.com/67/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=linatrix.wordpress.com&amp;blog=5618077&amp;post=67&amp;subd=linatrix&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://linatrix.wordpress.com/2009/02/21/file-types-permissions-symlinks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6f1396dbdb387891789219f2ba387a97?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">linatrix</media:title>
		</media:content>
	</item>
		<item>
		<title>System Utilities</title>
		<link>http://linatrix.wordpress.com/2009/02/21/system-utilities/</link>
		<comments>http://linatrix.wordpress.com/2009/02/21/system-utilities/#comments</comments>
		<pubDate>Sat, 21 Feb 2009 11:11:33 +0000</pubDate>
		<dc:creator>linatrix</dc:creator>
				<category><![CDATA[1]]></category>

		<guid isPermaLink="false">http://linatrix.wordpress.com/2009/02/21/system-utilities/</guid>
		<description><![CDATA[Features: 1. Process listing 2. Free/available memory 3. Disk utilization 1. ps &#8211; process status/listing a. ps -ef or ps -aux 2. top &#8211; combines, ps, uptime, free and updates regulary 3. uptime &#8211; returns useful system utilization information: a. current time b. uptime &#8211; days, hours and minutes c. connected users d. load averaged [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=linatrix.wordpress.com&amp;blog=5618077&amp;post=66&amp;subd=linatrix&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Features:<br />
 1. Process listing<br />
 2. Free/available memory<br />
 3. Disk utilization</p>
<p>1. ps &#8211; process status/listing<br />
 a. ps -ef or ps -aux<br />
2. top &#8211; combines, ps, uptime, free and updates regulary<br />
3. uptime &#8211; returns useful system utilization information:<br />
 a. current time<br />
 b. uptime &#8211; days, hours and minutes<br />
 c. connected users<br />
 d. load averaged &#8211; 1,5,15 minute values</p>
<p>4. free &#8211; returns memory utilization<br />
 a. RAM<br />
 b. SWAP free -m &#8211; for human readable format<br />
5. df &#8211; returns disk partition/mount point information<br />
 a. df &#8211; returns info. using kilobytes<br />
 b. df -h &#8211; returns info. using megabytes/human readable (gigs/teray/etc.)<br />
6. vmstat &#8211; reports on: processes, memory, paging, block I/O, traps, CPU activity<br />
 a. vmstat<br />
 b. vmstat -p /dev/hda1 &#8211; returns partitions stats for /dev/hda1 (/boot)</p>
<p>7. gnome-system-monitor &#8211; GUI, combining most system utilities<br />
8. ls -ltr /proc<br />
 a. cat /proc/cpuinfo<br />
9. kill PID &#8211; kills the process with a given PID<br />
10. runlevel &#8211; returns runlevel information using 2 fields:<br />
 a. represents previous runlevel<br />
 b. represents current runlevel</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/linatrix.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/linatrix.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/linatrix.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/linatrix.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/linatrix.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/linatrix.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/linatrix.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/linatrix.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/linatrix.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/linatrix.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/linatrix.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/linatrix.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/linatrix.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/linatrix.wordpress.com/66/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=linatrix.wordpress.com&amp;blog=5618077&amp;post=66&amp;subd=linatrix&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://linatrix.wordpress.com/2009/02/21/system-utilities/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6f1396dbdb387891789219f2ba387a97?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">linatrix</media:title>
		</media:content>
	</item>
		<item>
		<title>Perl</title>
		<link>http://linatrix.wordpress.com/2009/02/21/perl/</link>
		<comments>http://linatrix.wordpress.com/2009/02/21/perl/#comments</comments>
		<pubDate>Sat, 21 Feb 2009 11:08:58 +0000</pubDate>
		<dc:creator>linatrix</dc:creator>
				<category><![CDATA[1]]></category>

		<guid isPermaLink="false">http://linatrix.wordpress.com/?p=64</guid>
		<description><![CDATA[&#60;!&#8211; @page { size: 8.5in 11in; margin: 0.79in } P { margin-bottom: 0.08in } &#8211;&#62; Perl Features: 1. Parses text 2. Executes programs 3. CGI &#8211; Web forms, etc. 4. Supports RegExes (Perl and POSIX) 5. etc. Task: 1. Print &#8216;Hello World&#8217; to STDOUT a. perl -c helloworld.pl &#8211; checks the syntax of the script [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=linatrix.wordpress.com&amp;blog=5618077&amp;post=64&amp;subd=linatrix&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>&lt;!&#8211; 		@page { size: 8.5in 11in; margin: 0.79in } 		P { margin-bottom: 0.08in } 	&#8211;&gt;</p>
<p style="margin-bottom:0;"><span style="font-size:medium;"><strong>Perl</strong></span></p>
<p style="margin-bottom:0;">
<p style="margin-bottom:0;">Features:</p>
<p style="margin-bottom:0;">1. Parses text</p>
<p style="margin-bottom:0;">2. Executes programs</p>
<p style="margin-bottom:0;">3. CGI &#8211; Web forms, etc.</p>
<p style="margin-bottom:0;">4. Supports RegExes (Perl and POSIX)</p>
<p style="margin-bottom:0;">5. etc.</p>
<p style="margin-bottom:0;">
<p style="margin-bottom:0;">Task:</p>
<p style="margin-bottom:0;">
<p style="margin-bottom:0;">1. Print &#8216;Hello World&#8217; to STDOUT</p>
<p style="margin-bottom:0;">a. perl -c helloworld.pl &#8211; checks the syntax of the script</p>
<p style="margin-bottom:0;">b. perl helloworld.pl &#8211; executes the script</p>
<p style="margin-bottom:0;">c. chmod +x helloworld.pl &amp;&amp; ./helloworld.pl</p>
<p style="margin-bottom:0;">2. Parse RegExes from the command line</p>
<p style="margin-bottom:0;">EX</p>
<p style="margin-bottom:0;">#!/usr/bin/perl –w</p>
<p style="margin-bottom:0;">Print “hello world”</p>
<p style="margin-bottom:0;">EX</p>
<p style="margin-bottom:0;">#!/usr/bin/perl</p>
<p style="margin-bottom:0;">$var1 = $ARGV[0];</p>
<p style="margin-bottom:0;">If ($var1 =~ m/test /)</p>
<p style="margin-bottom:0;">{</p>
<p style="margin-bottom:0;">print ”success matches of $var1”</p>
<p style="margin-bottom:0;">}</p>
<p style="margin-bottom:0;">Else</p>
<p style="margin-bottom:0;">{</p>
<p style="margin-bottom:0;">Print “Fail no matche”</p>
<p style="margin-bottom:0;">}</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/linatrix.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/linatrix.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/linatrix.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/linatrix.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/linatrix.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/linatrix.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/linatrix.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/linatrix.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/linatrix.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/linatrix.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/linatrix.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/linatrix.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/linatrix.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/linatrix.wordpress.com/64/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=linatrix.wordpress.com&amp;blog=5618077&amp;post=64&amp;subd=linatrix&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://linatrix.wordpress.com/2009/02/21/perl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6f1396dbdb387891789219f2ba387a97?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">linatrix</media:title>
		</media:content>
	</item>
		<item>
		<title>sed &amp; awk</title>
		<link>http://linatrix.wordpress.com/2009/02/12/sed-awk/</link>
		<comments>http://linatrix.wordpress.com/2009/02/12/sed-awk/#comments</comments>
		<pubDate>Thu, 12 Feb 2009 14:50:03 +0000</pubDate>
		<dc:creator>linatrix</dc:creator>
				<category><![CDATA[RHCE]]></category>

		<guid isPermaLink="false">http://linatrix.wordpress.com/?p=61</guid>
		<description><![CDATA[Awk Features: 1. Field/Column processor 2. Supports egrep-compatible (POSIX) RegExes 3. Can return full lines like grep 4. Awk runs 3 steps: a. BEGIN &#8211; optional b. Body, where the main action(s) take place c. END &#8211; optional 5. Multiple body actions can be executed by separating them using semicolons. e.g. &#8216;{ print $1; print [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=linatrix.wordpress.com&amp;blog=5618077&amp;post=61&amp;subd=linatrix&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><!--[if gte mso 9]&gt;  Normal 0     false false false  EN-US X-NONE AR-SA              MicrosoftInternetExplorer4              &lt;![endif]--><!--[if gte mso 9]&gt;                                                                                                                                            &lt;![endif]--></p>
<p class="MsoNormal"><strong>Awk</strong></p>
<p class="MsoNormal">
<p class="MsoNormal">Features:</p>
<p class="MsoNormal">
<p class="MsoNormal"><span> </span>1. Field/Column processor</p>
<p class="MsoNormal"><span> </span>2. Supports egrep-compatible (POSIX) RegExes</p>
<p class="MsoNormal"><span> </span>3. Can return full lines like grep</p>
<p class="MsoNormal"><span> </span>4. Awk runs 3 steps:</p>
<p class="MsoNormal"><span> </span>a. BEGIN &#8211; optional</p>
<p class="MsoNormal"><span> </span>b. Body, where the main action(s) take place</p>
<p class="MsoNormal"><span> </span>c. END &#8211; optional</p>
<p class="MsoNormal"><span> </span>5. Multiple body actions can be executed by separating them using semicolons. e.g. &#8216;{ print $1; print $2 }&#8217;</p>
<p class="MsoNormal"><span> </span>6. Awk, auto-loops through input stream, regardless of the source of the stream. e.g. STDIN, Pipe, File</p>
<p class="MsoNormal">
<p class="MsoNormal">Usage:</p>
<p class="MsoNormal">
<p class="MsoNormal"><span> </span>1. awk &#8216;/optional_match/ { action }&#8217; file_name | Pipe</p>
<p class="MsoNormal"><span> </span>2. awk &#8216;{ print $1 }&#8217; grep1.txt print 1<sup>st</sup> column</p>
<p class="MsoNormal">
<p class="MsoNormal">Note: Use single quotes with awk, to avoid shell interpolation of awk&#8217;s variables</p>
<p class="MsoNormal"><span> </span>3. awk &#8216;{ print $1,$2 }&#8217; grep1.txt</p>
<p class="MsoNormal">Note: Default input and output field separators is whitespace</p>
<p class="MsoNormal"><span> </span>4. awk &#8216;/linux/ { print } &#8216; grep1.txt &#8211; this will print ALL lines containing &#8216;linux&#8217;</p>
<p class="MsoNormal"><span> </span>5. awk &#8216;{ if ($2 ~ /Linux/) print}&#8217; grep1.txt<span> </span>print if colmun 2 = Linux ;<span> </span><strong>awk</strong> &#8216;{if ($1 ~ /ali/) print $1,$2,$3 }&#8217; /etc/passwd</p>
<p class="MsoNormal">
<p class="MsoNormal"><span> </span>6. awk &#8216;{ if ($2 ~ /8/) print }&#8217; /var/log/messages &#8211; this will print the entire line for log items for the 8th</p>
<p class="MsoNormal"><span> </span>7. awk &#8216;{ print $3 }&#8217; /var/log/messages | awk -F: &#8216;{ print $1}&#8217;</p>
<p class="MsoNormal"><strong>Sed &#8211; Stream Editor</strong></p>
<p class="MsoNormal">
<p class="MsoNormal">Features:</p>
<p class="MsoNormal">
<p class="MsoNormal"><span> </span>1. Faciliates automated text editing</p>
<p class="MsoNormal"><span> </span>2. Supports RegExes (POSIX)</p>
<p class="MsoNormal"><span> </span>3. Like Awk, supports scripting using &#8216;-F&#8217; option</p>
<p class="MsoNormal"><span> </span>4. Supports input via: STDIN, pipe, file</p>
<p class="MsoNormal">
<p class="MsoNormal">Usage:</p>
<p class="MsoNormal">
<p class="MsoNormal"><span> </span>1. sed [options] &#8216;instruction[s]&#8216; file[s]</p>
<p class="MsoNormal"><span> </span>2. sed -n &#8217;1p&#8217; grep1.txt &#8211; prints the first line of the file</p>
<p class="MsoNormal"><span> </span>3. sed -n &#8217;1,5p&#8217; grep1.txt &#8211; prints the first 5 lines of the file</p>
<p class="MsoNormal"><span> </span>4. sed -n &#8216;$p&#8217; grep1.txt &#8211; prints the last line of the file</p>
<p class="MsoNormal"><span> </span>5. sed -n &#8217;1,3!p&#8217; grep1.txt &#8211; prints ALL but lines 1-3</p>
<p class="MsoNormal"><span> </span>6. sed -n &#8216;/linux/p&#8217; grep1.txt &#8211; prints lines with &#8216;linux&#8217;</p>
<p class="MsoNormal"><span> </span>7. sed -e &#8216;/^$/d&#8217; grep1.txt &#8211; deletes blank lines from the document</p>
<p class="MsoNormal"><span> </span>8. sed -e &#8216;/^$/d&#8217; grep1.txt &gt; sed1.txt &#8211; deletes blank lines from the document &#8216;grep1.txt&#8217; and creates &#8216;sed1.txt&#8217;</p>
<p class="MsoNormal"><span> </span>9. sed -ne &#8216;s/search/replace/p&#8217; sed1.txt</p>
<p class="MsoNormal">10. sed -ne &#8216;s/linux/unix/p&#8217; sed1.txt</p>
<p class="MsoNormal">11. sed -i.bak -e &#8216;s/3/4&#8242; sed1.txt &#8211; this backs up the original file and creates a new &#8216;sed1.txt&#8217; with the modifications indicated in the command</p>
<p class="MsoNormal">
<p class="MsoNormal">Note: Generally, to create new files, use output redirection, instead of allowing sed to write to STDOUT</p>
<p class="MsoNormal">Note: Sed applies each instruction to each line</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/linatrix.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/linatrix.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/linatrix.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/linatrix.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/linatrix.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/linatrix.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/linatrix.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/linatrix.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/linatrix.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/linatrix.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/linatrix.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/linatrix.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/linatrix.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/linatrix.wordpress.com/61/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=linatrix.wordpress.com&amp;blog=5618077&amp;post=61&amp;subd=linatrix&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://linatrix.wordpress.com/2009/02/12/sed-awk/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6f1396dbdb387891789219f2ba387a97?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">linatrix</media:title>
		</media:content>
	</item>
		<item>
		<title>GREP</title>
		<link>http://linatrix.wordpress.com/2009/02/12/grep/</link>
		<comments>http://linatrix.wordpress.com/2009/02/12/grep/#comments</comments>
		<pubDate>Thu, 12 Feb 2009 14:48:01 +0000</pubDate>
		<dc:creator>linatrix</dc:creator>
				<category><![CDATA[RHCE]]></category>

		<guid isPermaLink="false">http://linatrix.wordpress.com/?p=58</guid>
		<description><![CDATA[Features: 1. The ability to parse lines based on text and/or RegExes 2. Post-processor 3. Searches case-sensitively, by default 4. Searches for the text anywhere on the line EX 1. grep &#8216;linux&#8217; grep1.txt 2. grep -i &#8216;linux&#8217; grep1.txt &#8211; case-insensitive search 3. grep &#8216;^linux&#8217; grep1.txt &#8211; uses &#8216;^&#8217; anchor to anchor searches at the beginning [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=linatrix.wordpress.com&amp;blog=5618077&amp;post=58&amp;subd=linatrix&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p class="MsoNormal">
<p class="MsoNormal">Features:</p>
<p class="MsoNormal">
<p class="MsoNormal"><span> </span>1. The ability to parse lines based on text and/or RegExes</p>
<p class="MsoNormal"><span> </span>2. Post-processor</p>
<p class="MsoNormal"><span> </span>3. Searches case-sensitively, by default</p>
<p class="MsoNormal"><span> </span>4. Searches for the text anywhere on the line</p>
<p class="MsoNormal">EX</p>
<p class="MsoNormal">1. grep &#8216;linux&#8217; grep1.txt</p>
<p class="MsoNormal">2. grep -i &#8216;linux&#8217; grep1.txt &#8211; case-insensitive search</p>
<p class="MsoNormal">3. grep &#8216;^linux&#8217; grep1.txt &#8211; uses &#8216;^&#8217; anchor to anchor searches at the beginning of lines</p>
<p class="MsoNormal">4. grep -i &#8216;^linux&#8217; grep1.txt</p>
<p class="MsoNormal">5. grep -i &#8216;linux$&#8217; grep1.txt &#8211; uses &#8216;$&#8217; anchor to anchor searches at the end of lines</p>
<p class="MsoNormal">
<p class="MsoNormal">Note: Anchors are RegEx characters (meta-characters). They&#8217;re used to match at the beginning and end of lines</p>
<p class="MsoNormal">6. grep &#8216;[0-9]&#8216; grep1.txt &#8211; returns lines containing at least 1 number</p>
<p class="MsoNormal">7. grep &#8216;[a-z]?&#8217; grep1.txt</p>
<p class="MsoNormal">8. rpm -qa | grep grep &#8211; searches the package database for programs named &#8216;grep&#8217;</p>
<p class="MsoNormal">9. rpm -qa | grep -i xorg | wc -l &#8211; returns the number of pacakges with &#8216;xorg&#8217; in their names</p>
<p class="MsoNormal">10. grep sshd messages</p>
<p class="MsoNormal">11. grep -v sshd messages &#8211; performs and inverted search (all but &#8216;sshd&#8217; entries will be returned)</p>
<p class="MsoNormal">12. grep -v sshd messages | grep -v gconfd</p>
<p class="MsoNormal">13. grep -C 2 sshd messages &#8211; returns 2 lines, above and below matching line</p>
<p class="MsoNormal">14-. grep -c 2 sshd messages &#8211; returns count of<span> </span>lines</p>
<p class="MsoNormal">
<p class="MsoNormal">Note: Most, if not all, Linux programs log linearly, which means one line after another, from the earliest to the current</p>
<p class="MsoNormal">
<p class="MsoNormal">Note: Use single or double quotes to specify RegExes</p>
<p class="MsoNormal">
<p class="MsoNormal">Also, execute &#8216;grep&#8217; using &#8216;egrep&#8217; when RegExes are being used</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/linatrix.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/linatrix.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/linatrix.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/linatrix.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/linatrix.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/linatrix.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/linatrix.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/linatrix.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/linatrix.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/linatrix.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/linatrix.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/linatrix.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/linatrix.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/linatrix.wordpress.com/58/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=linatrix.wordpress.com&amp;blog=5618077&amp;post=58&amp;subd=linatrix&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://linatrix.wordpress.com/2009/02/12/grep/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6f1396dbdb387891789219f2ba387a97?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">linatrix</media:title>
		</media:content>
	</item>
		<item>
		<title>Tar, Gzip, Bzip2, Zip</title>
		<link>http://linatrix.wordpress.com/2009/02/12/tar-gzip-bzip2-zip/</link>
		<comments>http://linatrix.wordpress.com/2009/02/12/tar-gzip-bzip2-zip/#comments</comments>
		<pubDate>Thu, 12 Feb 2009 14:45:05 +0000</pubDate>
		<dc:creator>linatrix</dc:creator>
				<category><![CDATA[RHCE]]></category>

		<guid isPermaLink="false">http://linatrix.wordpress.com/?p=54</guid>
		<description><![CDATA[Features: 1. Compression utilities (gzip, bzip2, zip) 2. File rollers (the ability to represent many files as one) Gzip: Includes: 1. gzip &#8211; compresses/decompresses files 2. gunzip &#8211; decompresses gzip files Tasks: 1. compress &#8217;1million.txt&#8217; file using gzip a. gzip -c 1million.txt &#62; 1million.txt.gz Note: gzip auto-dumps to STDOUT, by default b. gzip -l 1million.txt.gz [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=linatrix.wordpress.com&amp;blog=5618077&amp;post=54&amp;subd=linatrix&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><!--[if gte mso 9]&gt;  Normal 0     false false false  EN-US X-NONE AR-SA              MicrosoftInternetExplorer4              &lt;![endif]--><!--[if gte mso 9]&gt;                                                                                                                                            &lt;![endif]--></p>
<p class="MsoNormal">
<p class="MsoNormal">
<p class="MsoNormal">Features:</p>
<p class="MsoNormal">
<p class="MsoNormal"><span> </span>1. Compression utilities (gzip, bzip2, zip)</p>
<p class="MsoNormal"><span> </span>2. File rollers (the ability to represent many files as one)</p>
<p class="MsoNormal">
<p class="MsoNormal"><strong>Gzip</strong>:</p>
<p class="MsoNormal">
<p class="MsoNormal">Includes:</p>
<p class="MsoNormal"><span> </span>1. gzip &#8211; compresses/decompresses files</p>
<p class="MsoNormal"><span> </span>2. gunzip &#8211; decompresses gzip files</p>
<p class="MsoNormal">
<p class="MsoNormal">Tasks:</p>
<p class="MsoNormal"><span> </span>1. compress &#8217;1million.txt&#8217; file using gzip</p>
<p class="MsoNormal"><span> </span>a. gzip -c 1million.txt &gt; 1million.txt.gz</p>
<p class="MsoNormal">
<p class="MsoNormal">Note: gzip auto-dumps to STDOUT, by default</p>
<p class="MsoNormal">
<p class="MsoNormal"><span> </span>b. gzip -l 1million.txt.gz &#8211; returns status information</p>
<p class="MsoNormal"><span> </span>c. gunzip 1million.txt.gz &#8211; dumps to file, and removes compressed version</p>
<p class="MsoNormal"><span> </span>d. gzip -d 1million.txt.gz</p>
<p class="MsoNormal"><span> </span>e. zcat 1million.txt.gz &#8211; dumps the contents to STDOUT<span> </span>zcat file.gz &gt; file2.txt</p>
<p class="MsoNormal"><span> </span>f. less 1million.txt.gzip &#8211; dumps the contents of gzip files to STDOUT</p>
<p class="MsoNormal">
<p class="MsoNormal"><strong>Bzip2</strong>: better compress</p>
<ol style="margin-top:0;" type="1">
<li class="MsoNormal">bzip2 -c      1million.txt &gt; 1million.txt.bz2</li>
</ol>
<p class="MsoNormal" style="margin-left:.5in;">
<p class="MsoNormal">Note: Bzip2 tends to outperform gzip on larger files</p>
<p class="MsoNormal">
<p class="MsoNormal"><span> </span>2. bunzip2 1million.txt.bz2</p>
<p class="MsoNormal"><span> </span>3. bzip2 -d 1million.txt.bz2</p>
<p class="MsoNormal"><span> </span>4. bzcat 1million.txt.bz2 &#8211; dumps contents to STDOUT</p>
<p class="MsoNormal"><span> </span>5. less 1million.txt.bz2 &#8211; also dumps the contents to STDOUT</p>
<p class="MsoNormal"><span> </span></p>
<p class="MsoNormal"><strong>Zip &amp; unzip:</strong></p>
<p class="MsoNormal">
<p class="MsoNormal"><span> </span>1. zip filename.zip path/ &#8211; general usage</p>
<p class="MsoNormal"><span> </span>2. zip 1million.txt.zip 1million.txt</p>
<p class="MsoNormal">
<p class="MsoNormal">Note: zip differs slight from gzip and bzip2 in that the destination file (resultant zip file) is specified before the source</p>
<p class="MsoNormal">
<ol style="margin-top:0;" type="1">
<li class="MsoNormal">unzip      1million.txt.zip</li>
</ol>
<p class="MsoNormal" style="margin-left:.5in;">
<p class="MsoNormal"><strong>Tar &amp; Gzip/Bzip2:</strong></p>
<p class="MsoNormal">
<p class="MsoNormal"><span> </span>1. tar -cvf filename.tar path/ &#8211; creates a non-compressed archive</p>
<ol style="margin-top:0;" type="1">
<li class="MsoNormal">tar -cvf      1million.txt.tar 1million.txt</li>
</ol>
<p class="MsoNormal" style="margin-left:.5in;">
<p class="MsoNormal">Note: tar, requires a small overhead for itself in each file</p>
<p class="MsoNormal"><span> </span>3. tar -czvf 1million.txt.tar.gz 1million.txt &#8211; creates, tar/gzip document</p>
<p class="MsoNormal"><span> </span>4. tar -cjvf 1million.txt.tar.bz2 1million.txt &#8211; creates, tar/bzip2 document</p>
<ol style="margin-top:0;" type="1">
<li class="MsoNormal">tar -tzvf      display archive content</li>
<li class="MsoNormal">tar -xzvf      extract archive content</li>
</ol>
<p class="MsoNormal"><span> </span>6. tar -cjvf 1million.txt.tar.bz2 1million.txt testRH5/- creates, tar/bzip2 document for the text file and &#8216;testRH5&#8242; directory tree</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/linatrix.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/linatrix.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/linatrix.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/linatrix.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/linatrix.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/linatrix.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/linatrix.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/linatrix.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/linatrix.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/linatrix.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/linatrix.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/linatrix.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/linatrix.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/linatrix.wordpress.com/54/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=linatrix.wordpress.com&amp;blog=5618077&amp;post=54&amp;subd=linatrix&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://linatrix.wordpress.com/2009/02/12/tar-gzip-bzip2-zip/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6f1396dbdb387891789219f2ba387a97?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">linatrix</media:title>
		</media:content>
	</item>
		<item>
		<title>Linux Redirection &amp; Pipes</title>
		<link>http://linatrix.wordpress.com/2009/02/12/linux-redirection-pipes/</link>
		<comments>http://linatrix.wordpress.com/2009/02/12/linux-redirection-pipes/#comments</comments>
		<pubDate>Thu, 12 Feb 2009 14:43:19 +0000</pubDate>
		<dc:creator>linatrix</dc:creator>
				<category><![CDATA[RHCE]]></category>

		<guid isPermaLink="false">http://linatrix.wordpress.com/?p=51</guid>
		<description><![CDATA[Linux Redirection &#38; Pipes Features: 1. Ability to control input and output Input redirection &#8216;&#60;&#8217;: 1. cat &#60; 123.txt Note: Use input redirection when program does NOT default to file as input Output redirection &#8216;&#62;&#8217;: 1. cat 123.txt &#62; onetwothree.txt Note: Default nature is to: 1. Clobber the target file 2. Populate with information from [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=linatrix.wordpress.com&amp;blog=5618077&amp;post=51&amp;subd=linatrix&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><!--[if gte mso 9]&gt;  Normal 0     false false false  EN-US X-NONE AR-SA              MicrosoftInternetExplorer4              &lt;![endif]--><!--[if gte mso 9]&gt;                                                                                                                                            &lt;![endif]--></p>
<p class="MsoNormal"><strong>Linux Redirection &amp; Pipes</strong></p>
<p class="MsoNormal">
<p class="MsoNormal">Features:</p>
<p class="MsoNormal"><span> </span>1. Ability to control input and output</p>
<p class="MsoNormal">Input redirection &#8216;&lt;&#8217;:</p>
<p class="MsoNormal"><span> </span>1. cat &lt; 123.txt</p>
<p class="MsoNormal">Note: Use input redirection when program does NOT default to file as input</p>
<p class="MsoNormal">Output redirection &#8216;&gt;&#8217;:</p>
<p class="MsoNormal"><span> </span>1. cat 123.txt &gt; onetwothree.txt</p>
<p class="MsoNormal">Note: Default nature is to:</p>
<p class="MsoNormal"><span> </span>1. Clobber the target file</p>
<p class="MsoNormal"><span> </span>2. Populate with information from input stream</p>
<p class="MsoNormal">Append redirection &#8216;&gt;&gt;&#8217;:</p>
<p class="MsoNormal"><span> </span>1. cat 123.txt &gt;&gt; numbers.txt &#8211; creates &#8216;numbers.txt&#8217; if it doesn&#8217;t exist, or appends if it does</p>
<ol style="margin-top:0;" type="1">
<li class="MsoNormal">cat 456.txt      &gt;&gt; numbers.txt</li>
</ol>
<p class="MsoNormal" style="margin-left:.25in;">
<p class="MsoNormal"><strong>Pipes</strong> &#8216;|&#8217;:</p>
<p class="MsoNormal">
<p class="MsoNormal">Features: Connects the output stream of one command to the input stream of a subsequent command</p>
<p class="MsoNormal"><span> </span>1. cat 123.txt | sort</p>
<p class="MsoNormal"><span> </span>2. cat 456.txt 123.txt | sort</p>
<p class="MsoNormal"><span> </span>3. cat 456.txt 123.txt | sort | grep 3</p>
<p class="MsoNormal">
<p class="MsoNormal"><strong>Command Chaining</strong></p>
<p class="MsoNormal">
<p class="MsoNormal">Features:</p>
<p class="MsoNormal"><span> </span>1. Permits the execution of multiple commands in sequence</p>
<p class="MsoNormal"><span> </span>2. Also permits execution based on the success or failure of a previous command</p>
<p class="MsoNormal">
<p class="MsoNormal"><span> </span>1. cat 123.txt ; ls -l &#8211; this runs first command, then second command without regards for exit status of the first command</p>
<p class="MsoNormal"><span> </span>2. cat 123.txt &amp;&amp; ls -l &#8211; this runs second command, if first command is successful</p>
<p class="MsoNormal"><span> </span>3. cat 1234.txt &amp;&amp; ls -l</p>
<p class="MsoNormal"><span> </span>4. cat 123.txt || ls -l &#8211; this runs second command, if first command fails</p>
<p class="MsoNormal">
<p class="MsoNormal">24. more|less &#8211; paginators, which display text one-page @ a time</p>
<p class="MsoNormal"><span> </span>1. more /etc/fstab</p>
<p class="MsoNormal"><span> </span>2. less 1thousand.txt</p>
<p class="MsoNormal">
<p class="MsoNormal">25. seq &#8211; echoes a sequence of numbers</p>
<p class="MsoNormal">
<p class="MsoNormal"><span> </span>a. seq 1000 &gt; 1thousand.txt &#8211; creates a file with numbers 1-1000</p>
<p class="MsoNormal">26. su &#8211; switches users</p>
<p class="MsoNormal">
<p class="MsoNormal"><span> </span>a. su &#8211; with no options attempts to log in as &#8216;root&#8217;</p>
<p class="MsoNormal">27. head &#8211; displays opening lines of text files</p>
<p class="MsoNormal">
<p class="MsoNormal"><span> </span>a. head /var/log/messages</p>
<p class="MsoNormal">
<p class="MsoNormal">28. tail &#8211; displays the closing lines of text files</p>
<p class="MsoNormal"><span> </span>a. tail /var/log/messages</p>
<p class="MsoNormal">
<p class="MsoNormal">29. wc &#8211; counts words and optionally lines of text files</p>
<p class="MsoNormal">
<p class="MsoNormal"><span> </span>a. wc -l /var/log/messages</p>
<p class="MsoNormal"><span> </span>b. wc -l 123.txt</p>
<p class="MsoNormal">
<p class="MsoNormal">30. file &#8211; determines file type</p>
<p class="MsoNormal"><span> </span>a. file /var/log/messages</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/linatrix.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/linatrix.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/linatrix.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/linatrix.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/linatrix.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/linatrix.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/linatrix.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/linatrix.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/linatrix.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/linatrix.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/linatrix.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/linatrix.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/linatrix.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/linatrix.wordpress.com/51/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=linatrix.wordpress.com&amp;blog=5618077&amp;post=51&amp;subd=linatrix&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://linatrix.wordpress.com/2009/02/12/linux-redirection-pipes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6f1396dbdb387891789219f2ba387a97?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">linatrix</media:title>
		</media:content>
	</item>
	</channel>
</rss>
