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

<channel>
	<title>The Danesh Project &#187; Linux Tips</title>
	<atom:link href="http://thedaneshproject.com/categories/linux/linux-tips/feed/" rel="self" type="application/rss+xml" />
	<link>http://thedaneshproject.com</link>
	<description>Knowledge bling's the finer things in life.</description>
	<lastBuildDate>Tue, 15 May 2012 21:00:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
<atom:link rel="hub" href="http://pubsubhubbub.appspot.com"/><atom:link rel="hub" href="http://superfeedr.com/hubbub"/>		<item>
		<title>Linux Tip #9: Create multiple folder or files</title>
		<link>http://thedaneshproject.com/posts/linux-tip-9-create-multiple-folder-or-files/</link>
		<comments>http://thedaneshproject.com/posts/linux-tip-9-create-multiple-folder-or-files/#comments</comments>
		<pubDate>Thu, 02 Jul 2009 00:00:00 +0000</pubDate>
		<dc:creator>Danesh</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Linux Tips]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[commands]]></category>
		<category><![CDATA[linux commands]]></category>
		<category><![CDATA[Linux Tip]]></category>

		<guid isPermaLink="false">http://thedaneshproject.com/posts/linux-tip-9-create-multiple-folder-or-files/</guid>
		<description><![CDATA[Sometime it’s necessary for you to create multiple folders or files. This is normally the case for me when I’m working with the clusters at my work place. Fortunately, In Linux this is easy. Using the “for loop”, one could easily put together a one-liner to see results. See sample below. The initial “ls” shows [...]]]></description>
			<content:encoded><![CDATA[<p>Sometime it’s necessary for you to create multiple folders or files. This is normally the case for me when I’m working with the clusters at my work place. Fortunately, In Linux this is easy.</p>
<p>Using the “for loop”, one could easily put together a one-liner to see results. See sample below.</p>
<p>The initial “ls” shows that the directory is empty.<br />
<code><br />
[root@abubu test]# ls -l<br />
total 0</code></p>
<p>Now, make the magic happens. Run “for ((i=1;i&lt;=10;i++)); do mkdir ./folder-$i; done”</p>
<p><code>[root@abubu test]# for ((i=1;i&lt;=10;i++)); do mkdir ./folder-$i; done</code></p>
<p>Now, “ls” will give you 10 folders. <img src='http://thedaneshproject.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p><code>[root@abubu test]# ls -l<br />
drwxr-xr-x 2 root root 4096 Jun 30 15:49 folder-1<br />
drwxr-xr-x 2 root root 4096 Jun 30 15:49 folder-10<br />
drwxr-xr-x 2 root root 4096 Jun 30 15:49 folder-2<br />
drwxr-xr-x 2 root root 4096 Jun 30 15:49 folder-3<br />
drwxr-xr-x 2 root root 4096 Jun 30 15:49 folder-4<br />
drwxr-xr-x 2 root root 4096 Jun 30 15:49 folder-5<br />
drwxr-xr-x 2 root root 4096 Jun 30 15:49 folder-6<br />
drwxr-xr-x 2 root root 4096 Jun 30 15:49 folder-7<br />
drwxr-xr-x 2 root root 4096 Jun 30 15:49 folder-8<br />
drwxr-xr-x 2 root root 4096 Jun 30 15:49 folder-9<br />
total 40<br />
[root@abubu test]#</code></p>
<p>This is just one way to do this. Please feel free to comment if you know a better way.</p>
<div style="height:33px;" class="really_simple_share robots-nocontent snap_nopreview"><div class="really_simple_share_facebook_like" style="width:50px;"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fthedaneshproject.com%2Fposts%2Flinux-tip-9-create-multiple-folder-or-files%2F&amp;layout=button_count&amp;show_faces=false&amp;width=50&amp;action=like&amp;colorscheme=light&amp;send=false&amp;height=27" 
						scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:50px; height:27px;" allowTransparency="true"></iframe></div><div class="really_simple_share_google1" style="width:80px;"><div class="g-plusone" data-size="medium" data-href="http://thedaneshproject.com/posts/linux-tip-9-create-multiple-folder-or-files/" ></div></div><div class="really_simple_share_twitter" style="width:110px;"><a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" 
						data-text="Linux Tip #9: Create multiple folder or files" data-url="http://thedaneshproject.com/posts/linux-tip-9-create-multiple-folder-or-files/" 
						data-via=""  ></a></div></div>
		<div style="clear:both;"></div>Similar Posts:<ul><li><a href="http://thedaneshproject.com/posts/inspecting-the-contents-of-an-initrd-file/" rel="bookmark" title="January 29, 2007">Inspecting the contents of an initrd file.</a></li>

<li><a href="http://thedaneshproject.com/posts/sort-files-by-size/" rel="bookmark" title="March 31, 2010">Sort files by size</a></li>

<li><a href="http://thedaneshproject.com/posts/running-previous-commands-in-linux/" rel="bookmark" title="October 18, 2007">Running previous commands in Linux</a></li>

<li><a href="http://thedaneshproject.com/posts/linux-tip-4-simple-sort-with-the-sort-command/" rel="bookmark" title="March 27, 2009">Linux Tip #4: Simple sort with the sort command</a></li>

<li><a href="http://thedaneshproject.com/posts/box-net-via-webdav-on-fedora-16/" rel="bookmark" title="February 1, 2012">Box.net via WebDAV on Fedora 16</a></li>
</ul><!-- Similar Posts took 5.400 ms -->]]></content:encoded>
			<wfw:commentRss>http://thedaneshproject.com/posts/linux-tip-9-create-multiple-folder-or-files/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Linux Tip #8: grep with color</title>
		<link>http://thedaneshproject.com/posts/linux-tip-8-grep-with-color/</link>
		<comments>http://thedaneshproject.com/posts/linux-tip-8-grep-with-color/#comments</comments>
		<pubDate>Tue, 23 Jun 2009 00:00:23 +0000</pubDate>
		<dc:creator>Danesh</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Linux Tips]]></category>
		<category><![CDATA[environment]]></category>
		<category><![CDATA[grep]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[linux commands]]></category>
		<category><![CDATA[Linux Tip]]></category>

		<guid isPermaLink="false">http://thedaneshproject.com/?p=1529</guid>
		<description><![CDATA[If you&#8217;re running grep on a large file with multipled results, highlighting your results would really easy on your eyes. Here&#8217;s how; Export the &#8220;GREP_OPTIONS&#8221; environment variable to include &#8220;&#8211;color=auto&#8221;. Run the export command below. export GREP_OPTIONS='--color=auto' Once you&#8217;ve executed the command, run a simple grep to see the highlights in action. Red is the [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://thedaneshproject.com/wp-content/uploads/2009/06/grep-with-color-1.png"><img class="alignnone size-medium wp-image-1530" title="grep-with-color-1" src="http://thedaneshproject.com/wp-content/uploads/2009/06/grep-with-color-1-500x168.png" alt="grep-with-color-1" width="500" height="168" /></a></p>
<p>If you&#8217;re running grep on a large file with multipled results, highlighting your results would really easy on your eyes.</p>
<p>Here&#8217;s how;</p>
<p>Export the &#8220;GREP_OPTIONS&#8221; environment variable to include &#8220;&#8211;color=auto&#8221;. Run the export command below.</p>
<p><code>export GREP_OPTIONS='--color=auto'</code></p>
<p>Once you&#8217;ve executed the command, run a simple grep to see the highlights in action.</p>
<p>Red is the default highlight color. I&#8217;ll cover setting custom colors in a future post.</p>
<div style="height:33px;" class="really_simple_share robots-nocontent snap_nopreview"><div class="really_simple_share_facebook_like" style="width:50px;"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fthedaneshproject.com%2Fposts%2Flinux-tip-8-grep-with-color%2F&amp;layout=button_count&amp;show_faces=false&amp;width=50&amp;action=like&amp;colorscheme=light&amp;send=false&amp;height=27" 
						scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:50px; height:27px;" allowTransparency="true"></iframe></div><div class="really_simple_share_google1" style="width:80px;"><div class="g-plusone" data-size="medium" data-href="http://thedaneshproject.com/posts/linux-tip-8-grep-with-color/" ></div></div><div class="really_simple_share_twitter" style="width:110px;"><a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" 
						data-text="Linux Tip #8: grep with color" data-url="http://thedaneshproject.com/posts/linux-tip-8-grep-with-color/" 
						data-via=""  ></a></div></div>
		<div style="clear:both;"></div>Similar Posts:<ul><li><a href="http://thedaneshproject.com/posts/linux-tip-4-simple-sort-with-the-sort-command/" rel="bookmark" title="March 27, 2009">Linux Tip #4: Simple sort with the sort command</a></li>

<li><a href="http://thedaneshproject.com/posts/alias-command-in-linux/" rel="bookmark" title="November 4, 2007">Alias command in Linux</a></li>

<li><a href="http://thedaneshproject.com/posts/linux-commands-tee/" rel="bookmark" title="March 26, 2008">Linux Commands: tee</a></li>

<li><a href="http://thedaneshproject.com/posts/how-to-untar-over-ssh/" rel="bookmark" title="January 21, 2008">How to untar over SSH</a></li>

<li><a href="http://thedaneshproject.com/posts/how-to-set-your-system-time-using-ntp/" rel="bookmark" title="July 24, 2008">How to set your system time using NTP</a></li>
</ul><!-- Similar Posts took 7.679 ms -->]]></content:encoded>
			<wfw:commentRss>http://thedaneshproject.com/posts/linux-tip-8-grep-with-color/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux Tip #7: Disable auto logout in C Shell (csh)</title>
		<link>http://thedaneshproject.com/posts/linux-tip-7-disable-auto-logout-in-c-shell-csh/</link>
		<comments>http://thedaneshproject.com/posts/linux-tip-7-disable-auto-logout-in-c-shell-csh/#comments</comments>
		<pubDate>Wed, 20 May 2009 18:24:10 +0000</pubDate>
		<dc:creator>Danesh</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Linux Tips]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[commands]]></category>
		<category><![CDATA[linux commands]]></category>
		<category><![CDATA[Linux Tip]]></category>

		<guid isPermaLink="false">http://thedaneshproject.com/?p=1469</guid>
		<description><![CDATA[Run the &#8220;set autologout=[n]&#8221; command to enable or disable the autologout feature in C Shell (csh) Setting autologout to &#8220;0&#8243; will disable the autologout feature. set autologout=0 The first line below will set the autologout period to 1 minute and the second line will be 5 minutes. If there is no activity for the set [...]]]></description>
			<content:encoded><![CDATA[<p>Run the &#8220;set autologout=[n]&#8221; command to enable or disable the autologout feature in C Shell (csh)</p>
<p>Setting autologout to &#8220;0&#8243; will disable the autologout feature.</p>
<p><code>set autologout=0</code></p>
<p>The first line below will set the autologout period to 1 minute and the second line will be 5 minutes. If there is no activity for the set time, you will automatically be logged off from yoru C Shell (csh) session.</p>
<p><code>set autologout=1</code></p>
<p><code>set autologout=5</code></p>
<div style="height:33px;" class="really_simple_share robots-nocontent snap_nopreview"><div class="really_simple_share_facebook_like" style="width:50px;"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fthedaneshproject.com%2Fposts%2Flinux-tip-7-disable-auto-logout-in-c-shell-csh%2F&amp;layout=button_count&amp;show_faces=false&amp;width=50&amp;action=like&amp;colorscheme=light&amp;send=false&amp;height=27" 
						scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:50px; height:27px;" allowTransparency="true"></iframe></div><div class="really_simple_share_google1" style="width:80px;"><div class="g-plusone" data-size="medium" data-href="http://thedaneshproject.com/posts/linux-tip-7-disable-auto-logout-in-c-shell-csh/" ></div></div><div class="really_simple_share_twitter" style="width:110px;"><a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" 
						data-text="Linux Tip #7: Disable auto logout in C Shell (csh)" data-url="http://thedaneshproject.com/posts/linux-tip-7-disable-auto-logout-in-c-shell-csh/" 
						data-via=""  ></a></div></div>
		<div style="clear:both;"></div>Similar Posts:<ul><li><a href="http://thedaneshproject.com/posts/screen-linux-command/" rel="bookmark" title="February 26, 2007">Screen | Linux Command</a></li>

<li><a href="http://thedaneshproject.com/posts/linux-tip-3-system-uptime-with-uptime/" rel="bookmark" title="March 23, 2009">Linux Tip #3: System uptime with uptime</a></li>

<li><a href="http://thedaneshproject.com/posts/how-to-get-your-previous-commands-in-aix/" rel="bookmark" title="December 5, 2008">How to get your previous commands in AIX</a></li>

<li><a href="http://thedaneshproject.com/posts/linux-tip-4-simple-sort-with-the-sort-command/" rel="bookmark" title="March 27, 2009">Linux Tip #4: Simple sort with the sort command</a></li>

<li><a href="http://thedaneshproject.com/posts/history-command-with-time-stamp/" rel="bookmark" title="February 8, 2010">History command with time stamp</a></li>
</ul><!-- Similar Posts took 5.428 ms -->]]></content:encoded>
			<wfw:commentRss>http://thedaneshproject.com/posts/linux-tip-7-disable-auto-logout-in-c-shell-csh/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux Tip #6: Download with cURL</title>
		<link>http://thedaneshproject.com/posts/linux-tip-6-download-with-curl/</link>
		<comments>http://thedaneshproject.com/posts/linux-tip-6-download-with-curl/#comments</comments>
		<pubDate>Fri, 24 Apr 2009 01:00:31 +0000</pubDate>
		<dc:creator>Danesh</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Linux Tips]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[commands]]></category>
		<category><![CDATA[Linux Tip]]></category>

		<guid isPermaLink="false">http://thedaneshproject.com/?p=1412</guid>
		<description><![CDATA[Here&#8217;s how to download a file using cURL. curl -O [full url to file] curl -O http://downloads.wordpress.org/plugin/simple-tags.1.6.6.zip Sample Output; [root@kmon01 bin]# curl -O http://downloads.wordpress.org/plugin/simple-tags.1.6.6.zip % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 585k 0 585k 0 0 95317 0 --:--:-- 0:00:06 --:--:-- 120k Similar [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s how to download a file using cURL.</p>
<p><code>curl -O [full url to file]</code></p>
<p><code>curl -O http://downloads.wordpress.org/plugin/simple-tags.1.6.6.zip</code></p>
<p>Sample Output;</p>
<p><code>[root@kmon01 bin]# curl -O http://downloads.wordpress.org/plugin/simple-tags.1.6.6.zip<br />
%     Total    % Received % Xferd  Average Speed   Time    Time     Time  Current<br />
                                                      Dload     Upload  Total   Spent    Left   Speed<br />
100  585k    0  585k        0         0 95317             0 --:--:--  0:00:06 --:--:--  120k</code></p>
<div style="height:33px;" class="really_simple_share robots-nocontent snap_nopreview"><div class="really_simple_share_facebook_like" style="width:50px;"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fthedaneshproject.com%2Fposts%2Flinux-tip-6-download-with-curl%2F&amp;layout=button_count&amp;show_faces=false&amp;width=50&amp;action=like&amp;colorscheme=light&amp;send=false&amp;height=27" 
						scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:50px; height:27px;" allowTransparency="true"></iframe></div><div class="really_simple_share_google1" style="width:80px;"><div class="g-plusone" data-size="medium" data-href="http://thedaneshproject.com/posts/linux-tip-6-download-with-curl/" ></div></div><div class="really_simple_share_twitter" style="width:110px;"><a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" 
						data-text="Linux Tip #6: Download with cURL" data-url="http://thedaneshproject.com/posts/linux-tip-6-download-with-curl/" 
						data-via=""  ></a></div></div>
		<div style="clear:both;"></div>Similar Posts:<ul><li><a href="http://thedaneshproject.com/posts/linux-tip-3-system-uptime-with-uptime/" rel="bookmark" title="March 23, 2009">Linux Tip #3: System uptime with uptime</a></li>

<li><a href="http://thedaneshproject.com/posts/wordpress-visual-cheat-sheet/" rel="bookmark" title="November 2, 2009">WordPress Visual Cheat Sheet</a></li>

<li><a href="http://thedaneshproject.com/posts/linux-tip-2-get-your-pid-with/" rel="bookmark" title="March 17, 2009">Linux Tip #2: Get your PID with $$</a></li>

<li><a href="http://thedaneshproject.com/posts/linux-tip-9-create-multiple-folder-or-files/" rel="bookmark" title="July 2, 2009">Linux Tip #9: Create multiple folder or files</a></li>

<li><a href="http://thedaneshproject.com/posts/linux-tip-1-live-monitoring-with-tail/" rel="bookmark" title="March 16, 2009">Linux Tip #1: Live monitoring with tail</a></li>
</ul><!-- Similar Posts took 5.427 ms -->]]></content:encoded>
			<wfw:commentRss>http://thedaneshproject.com/posts/linux-tip-6-download-with-curl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux Tip #5: Reload you /etc/inittab file</title>
		<link>http://thedaneshproject.com/posts/linux-tip-5-reload-you-etcinittab-file/</link>
		<comments>http://thedaneshproject.com/posts/linux-tip-5-reload-you-etcinittab-file/#comments</comments>
		<pubDate>Tue, 14 Apr 2009 11:19:10 +0000</pubDate>
		<dc:creator>Danesh</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Linux Tips]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[commands]]></category>
		<category><![CDATA[Linux Tip]]></category>

		<guid isPermaLink="false">http://thedaneshproject.com/?p=1385</guid>
		<description><![CDATA[You made changes to your /etc/inittab file but can&#8217;t effort any downtime. There&#8217;s a simple trick to reload and apply changes in your /etc/inittab file without a reboot. Run &#8220;init q&#8221; or &#8220;init Q&#8221; [root@snoopy ~]# init q [root@snoopy ~]# [root@snoopy ~]# init Q [root@snoopy ~]# Similar Posts:How to setup an OpenSSH Server on Ubuntu [...]]]></description>
			<content:encoded><![CDATA[<p>You made changes to your /etc/inittab file but can&#8217;t effort any downtime. </p>
<p>There&#8217;s a simple trick to reload and apply changes in your /etc/inittab file without a reboot.</p>
<p>Run &#8220;init q&#8221; or &#8220;init Q&#8221;</p>
<p><code>[root@snoopy ~]# init q<br />
[root@snoopy ~]#<br />
[root@snoopy ~]# init Q<br />
[root@snoopy ~]#<br />
</code></p>
<div style="height:33px;" class="really_simple_share robots-nocontent snap_nopreview"><div class="really_simple_share_facebook_like" style="width:50px;"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fthedaneshproject.com%2Fposts%2Flinux-tip-5-reload-you-etcinittab-file%2F&amp;layout=button_count&amp;show_faces=false&amp;width=50&amp;action=like&amp;colorscheme=light&amp;send=false&amp;height=27" 
						scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:50px; height:27px;" allowTransparency="true"></iframe></div><div class="really_simple_share_google1" style="width:80px;"><div class="g-plusone" data-size="medium" data-href="http://thedaneshproject.com/posts/linux-tip-5-reload-you-etcinittab-file/" ></div></div><div class="really_simple_share_twitter" style="width:110px;"><a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" 
						data-text="Linux Tip #5: Reload you /etc/inittab file" data-url="http://thedaneshproject.com/posts/linux-tip-5-reload-you-etcinittab-file/" 
						data-via=""  ></a></div></div>
		<div style="clear:both;"></div>Similar Posts:<ul><li><a href="http://thedaneshproject.com/posts/how-to-setup-an-openssh-server-on-ubuntu-9-04-jaunty-jackalope/" rel="bookmark" title="July 24, 2009">How to setup an OpenSSH Server on Ubuntu 9.04 Jaunty Jackalope</a></li>

<li><a href="http://thedaneshproject.com/posts/how-to-add-route-in-linux/" rel="bookmark" title="June 30, 2008">How to add route in Linux</a></li>

<li><a href="http://thedaneshproject.com/posts/linux-tip-6-download-with-curl/" rel="bookmark" title="April 24, 2009">Linux Tip #6: Download with cURL</a></li>

<li><a href="http://thedaneshproject.com/posts/how-to-disable-directory-listing-in-tomcat/" rel="bookmark" title="May 31, 2008">How to disable directory listing in Tomcat</a></li>

<li><a href="http://thedaneshproject.com/posts/linux-tip-1-live-monitoring-with-tail/" rel="bookmark" title="March 16, 2009">Linux Tip #1: Live monitoring with tail</a></li>
</ul><!-- Similar Posts took 5.324 ms -->]]></content:encoded>
			<wfw:commentRss>http://thedaneshproject.com/posts/linux-tip-5-reload-you-etcinittab-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux Tip #4: Simple sort with the sort command</title>
		<link>http://thedaneshproject.com/posts/linux-tip-4-simple-sort-with-the-sort-command/</link>
		<comments>http://thedaneshproject.com/posts/linux-tip-4-simple-sort-with-the-sort-command/#comments</comments>
		<pubDate>Fri, 27 Mar 2009 08:41:02 +0000</pubDate>
		<dc:creator>Danesh</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Linux Tips]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[commands]]></category>
		<category><![CDATA[linux commands]]></category>
		<category><![CDATA[Linux Tip]]></category>

		<guid isPermaLink="false">http://thedaneshproject.com/?p=1332</guid>
		<description><![CDATA[You can easily sort your outputs in Linux using the &#8220;sort&#8221; command. Simply pipe &#8220;&#124;&#8221; your output to a &#8220;sort&#8221; command and you should see the sorted results. See sample usage below. This is just to start off, I&#8217;ve cover more in future posts. [root@hantu ~]# cat numbers 5 4 3 2 1 0 6 [...]]]></description>
			<content:encoded><![CDATA[<p>You can easily sort your outputs in Linux using the &#8220;sort&#8221; command. Simply pipe &#8220;|&#8221; your output to a &#8220;sort&#8221; command and you should see the sorted results.</p>
<p>See sample usage below. This is just to start off, I&#8217;ve cover more in future posts.</p>
<p><code>[root@hantu ~]# cat numbers<br />
5<br />
4<br />
3<br />
2<br />
1<br />
0<br />
6<br />
7<br />
8<br />
9</code></p>
<p><code>[root@hantu ~]# cat numbers | sort<br />
0<br />
1<br />
2<br />
3<br />
4<br />
5<br />
6<br />
7<br />
8<br />
9</code></p>
<p><code>[root@hantu ~]# cat numbers | sort -r<br />
9<br />
8<br />
7<br />
6<br />
5<br />
4<br />
3<br />
2<br />
1<br />
0</code></p>
<p>Happy sorting!!</p>
<div style="height:33px;" class="really_simple_share robots-nocontent snap_nopreview"><div class="really_simple_share_facebook_like" style="width:50px;"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fthedaneshproject.com%2Fposts%2Flinux-tip-4-simple-sort-with-the-sort-command%2F&amp;layout=button_count&amp;show_faces=false&amp;width=50&amp;action=like&amp;colorscheme=light&amp;send=false&amp;height=27" 
						scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:50px; height:27px;" allowTransparency="true"></iframe></div><div class="really_simple_share_google1" style="width:80px;"><div class="g-plusone" data-size="medium" data-href="http://thedaneshproject.com/posts/linux-tip-4-simple-sort-with-the-sort-command/" ></div></div><div class="really_simple_share_twitter" style="width:110px;"><a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" 
						data-text="Linux Tip #4: Simple sort with the sort command" data-url="http://thedaneshproject.com/posts/linux-tip-4-simple-sort-with-the-sort-command/" 
						data-via=""  ></a></div></div>
		<div style="clear:both;"></div>Similar Posts:<ul><li><a href="http://thedaneshproject.com/posts/linux-commands-tee/" rel="bookmark" title="March 26, 2008">Linux Commands: tee</a></li>

<li><a href="http://thedaneshproject.com/posts/linux-tip-8-grep-with-color/" rel="bookmark" title="June 23, 2009">Linux Tip #8: grep with color</a></li>

<li><a href="http://thedaneshproject.com/posts/linux-tip-9-create-multiple-folder-or-files/" rel="bookmark" title="July 2, 2009">Linux Tip #9: Create multiple folder or files</a></li>

<li><a href="http://thedaneshproject.com/posts/linux-tip-3-system-uptime-with-uptime/" rel="bookmark" title="March 23, 2009">Linux Tip #3: System uptime with uptime</a></li>

<li><a href="http://thedaneshproject.com/posts/linux-tip-2-get-your-pid-with/" rel="bookmark" title="March 17, 2009">Linux Tip #2: Get your PID with $$</a></li>
</ul><!-- Similar Posts took 5.703 ms -->]]></content:encoded>
			<wfw:commentRss>http://thedaneshproject.com/posts/linux-tip-4-simple-sort-with-the-sort-command/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux Tip #3: System uptime with uptime</title>
		<link>http://thedaneshproject.com/posts/linux-tip-3-system-uptime-with-uptime/</link>
		<comments>http://thedaneshproject.com/posts/linux-tip-3-system-uptime-with-uptime/#comments</comments>
		<pubDate>Mon, 23 Mar 2009 13:03:25 +0000</pubDate>
		<dc:creator>Danesh</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Linux Tips]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[commands]]></category>
		<category><![CDATA[linux commands]]></category>
		<category><![CDATA[Linux Tip]]></category>

		<guid isPermaLink="false">http://thedaneshproject.com/?p=1317</guid>
		<description><![CDATA[Want to know how long your Linux box has been up for? Simple, just run the &#8220;uptime&#8221; command and you will be rewarded with the answer plus a bit more. 8:58pm  up  19:54,  1 user,  load average: 0.47, 0.62, 0.35 Above is the typical reply from uptime. On the left is the current time, followed [...]]]></description>
			<content:encoded><![CDATA[<p>Want to know how long your Linux box has been up for?</p>
<p>Simple, just run the &#8220;uptime&#8221; command and you will be rewarded with the answer plus a bit more.</p>
<p><code>8:58pm  up  19:54,  1 user,  load average: 0.47, 0.62, 0.35</code></p>
<p>Above is the typical reply from uptime. On the left is the current time, followed by the system&#8217;s uptime, logged in users and finally the system&#8217;s load average.</p>
<p>Sample output;</p>
<p><code>danesh@pandora:~&gt; uptime<br />
8:58pm  up  19:54,  1 user,  load average: 0.47, 0.62, 0.35</code></p>
<div style="height:33px;" class="really_simple_share robots-nocontent snap_nopreview"><div class="really_simple_share_facebook_like" style="width:50px;"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fthedaneshproject.com%2Fposts%2Flinux-tip-3-system-uptime-with-uptime%2F&amp;layout=button_count&amp;show_faces=false&amp;width=50&amp;action=like&amp;colorscheme=light&amp;send=false&amp;height=27" 
						scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:50px; height:27px;" allowTransparency="true"></iframe></div><div class="really_simple_share_google1" style="width:80px;"><div class="g-plusone" data-size="medium" data-href="http://thedaneshproject.com/posts/linux-tip-3-system-uptime-with-uptime/" ></div></div><div class="really_simple_share_twitter" style="width:110px;"><a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" 
						data-text="Linux Tip #3: System uptime with uptime" data-url="http://thedaneshproject.com/posts/linux-tip-3-system-uptime-with-uptime/" 
						data-via=""  ></a></div></div>
		<div style="clear:both;"></div>Similar Posts:<ul><li><a href="http://thedaneshproject.com/posts/linux-tip-6-download-with-curl/" rel="bookmark" title="April 24, 2009">Linux Tip #6: Download with cURL</a></li>

<li><a href="http://thedaneshproject.com/posts/users-shutdowns-and-reboots/" rel="bookmark" title="October 24, 2007">Users, Shutdowns and Reboots</a></li>

<li><a href="http://thedaneshproject.com/posts/linux-tip-4-simple-sort-with-the-sort-command/" rel="bookmark" title="March 27, 2009">Linux Tip #4: Simple sort with the sort command</a></li>

<li><a href="http://thedaneshproject.com/posts/how-to-execute-linux-commands-from-windows/" rel="bookmark" title="July 29, 2008">How To Execute Linux commands from Windows</a></li>

<li><a href="http://thedaneshproject.com/posts/how-to-find-a-programs-process-id-pid/" rel="bookmark" title="July 18, 2008">How to find a program&#8217;s process id (pid)</a></li>
</ul><!-- Similar Posts took 5.922 ms -->]]></content:encoded>
			<wfw:commentRss>http://thedaneshproject.com/posts/linux-tip-3-system-uptime-with-uptime/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux Tip #2: Get your PID with $$</title>
		<link>http://thedaneshproject.com/posts/linux-tip-2-get-your-pid-with/</link>
		<comments>http://thedaneshproject.com/posts/linux-tip-2-get-your-pid-with/#comments</comments>
		<pubDate>Tue, 17 Mar 2009 02:00:11 +0000</pubDate>
		<dc:creator>Danesh</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Linux Tips]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[commands]]></category>
		<category><![CDATA[Linux Tip]]></category>

		<guid isPermaLink="false">http://thedaneshproject.com/?p=1311</guid>
		<description><![CDATA[&#8220;$$&#8221; is a useful Linux variable you could use in your script to get it&#8217;s PID. The &#8220;$$&#8221; variable always holds the PID of the executing process. Why do you need it? Maybe to check if the script is already running? This is what I normally use it for. Sample Script; #!/bin/bash echo "My PID [...]]]></description>
			<content:encoded><![CDATA[<p>&#8220;$$&#8221; is a useful Linux variable you could use in your script to get it&#8217;s PID. The &#8220;$$&#8221; variable always holds the PID of the executing process. </p>
<p>Why do you need it? Maybe to check if the script is already running? This is what I normally use it for.</p>
<p>Sample Script;</p>
<p><code>#!/bin/bash<br />
echo "My PID is $$"<br />
sleep 2</code></p>
<p>Sample Output;</p>
<p><code>[root@keke ~]# ./test1.sh<br />
My PID is 8909</code></p>
<div style="height:33px;" class="really_simple_share robots-nocontent snap_nopreview"><div class="really_simple_share_facebook_like" style="width:50px;"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fthedaneshproject.com%2Fposts%2Flinux-tip-2-get-your-pid-with%2F&amp;layout=button_count&amp;show_faces=false&amp;width=50&amp;action=like&amp;colorscheme=light&amp;send=false&amp;height=27" 
						scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:50px; height:27px;" allowTransparency="true"></iframe></div><div class="really_simple_share_google1" style="width:80px;"><div class="g-plusone" data-size="medium" data-href="http://thedaneshproject.com/posts/linux-tip-2-get-your-pid-with/" ></div></div><div class="really_simple_share_twitter" style="width:110px;"><a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" 
						data-text="Linux Tip #2: Get your PID with $$" data-url="http://thedaneshproject.com/posts/linux-tip-2-get-your-pid-with/" 
						data-via=""  ></a></div></div>
		<div style="clear:both;"></div>Similar Posts:<ul><li><a href="http://thedaneshproject.com/posts/how-to-send-a-process-to-the-background/" rel="bookmark" title="June 3, 2008">How to send a process to the background</a></li>

<li><a href="http://thedaneshproject.com/posts/how-to-find-a-programs-process-id-pid/" rel="bookmark" title="July 18, 2008">How to find a program&#8217;s process id (pid)</a></li>

<li><a href="http://thedaneshproject.com/posts/select-all-files-but-one-on-linux/" rel="bookmark" title="January 10, 2008">Select all files but one on linux</a></li>

<li><a href="http://thedaneshproject.com/posts/linux-tip-4-simple-sort-with-the-sort-command/" rel="bookmark" title="March 27, 2009">Linux Tip #4: Simple sort with the sort command</a></li>

<li><a href="http://thedaneshproject.com/posts/mkfifo-linux-command/" rel="bookmark" title="February 22, 2007">mkfifo | Linux Command</a></li>
</ul><!-- Similar Posts took 3.686 ms -->]]></content:encoded>
			<wfw:commentRss>http://thedaneshproject.com/posts/linux-tip-2-get-your-pid-with/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux Tip #1: Live monitoring with tail</title>
		<link>http://thedaneshproject.com/posts/linux-tip-1-live-monitoring-with-tail/</link>
		<comments>http://thedaneshproject.com/posts/linux-tip-1-live-monitoring-with-tail/#comments</comments>
		<pubDate>Mon, 16 Mar 2009 04:40:17 +0000</pubDate>
		<dc:creator>Danesh</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Linux Tips]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[commands]]></category>
		<category><![CDATA[Linux Tip]]></category>

		<guid isPermaLink="false">http://thedaneshproject.com/?p=1309</guid>
		<description><![CDATA[This is something every Linux admin or Linux superuser probably already knows and uses everyday. The &#8220;tail -f&#8221; command monitors a file and tracks any changes to it. As changes are made to the monitored file the &#8220;tail&#8221; command will print them on screen. Live monitoring basically&#8230;.. tail -f [log file] Sample output; [root@keke ~]# [...]]]></description>
			<content:encoded><![CDATA[<p>This is something every Linux admin or Linux superuser probably already knows and uses everyday.</p>
<p>The &#8220;tail -f&#8221; command monitors a file and tracks any changes to it. As changes are made to the monitored file the &#8220;tail&#8221; command will print them on screen. Live monitoring basically&#8230;..</p>
<p><code>tail -f [log file]</code></p>
<p>Sample output;</p>
<p><code>[root@keke ~]# tail -f /var/log/messages</p>
<p>Mar 16 11:06:39 keke dhcpd: DHCPREQUEST for 172.28.6.233 from 00:1b:78:d2:bc:0e via eth0<br />
Mar 16 11:06:39 keke dhcpd: DHCPACK on 172.28.6.233 to 00:1b:78:d2:bc:0e via eth0<br />
Mar 16 11:06:39 abubu dhclient: DHCPREQUEST on eth0 to 172.28.1.41 port 67<br />
Mar 16 11:06:39 abubu dhclient: DHCPACK from 172.28.1.41<br />
Mar 16 11:06:39 abubu dhclient: bound to 172.28.6.233 -- renewal in 33912 seconds.<br />
Mar 16 11:06:46 keke dhcpd: DHCPDISCOVER from 00:14:5e:ce:66:14 via eth0<br />
Mar 16 11:06:46 keke dhcpd: DHCPOFFER on 172.28.4.123 to 00:14:5e:ce:66:14 via eth0<br />
Mar 16 11:06:54 keke dhcpd: DHCPREQUEST for 172.28.4.123 (172.28.1.41) from 00:14:5e:ce:66:14 via eth0<br />
Mar 16 11:06:54 keke dhcpd: DHCPACK on 172.28.4.123 to 00:14:5e:ce:66:14 via eth0<br />
Mar 16 11:06:54 keke atftpd[21175]: Serving /tftpboot/pxelinux.0 to 172.28.4.123:2070<br />
Mar 16 11:06:54 keke atftpd[21175]: Serving /tftpboot/pxelinux.0 to 172.28.4.123:2071<br />
Mar 16 11:06:54 keke atftpd[21175]: Serving /tftpboot/pxelinux.cfg/01-00-14-5e-ce-66-14 to 172.28.4.123:57089<br />
Mar 16 11:06:54 keke atftpd[21175]: Serving /tftpboot/pxelinux.cfg/AC1C047B to 172.28.4.123:57090</code></p>
<div style="height:33px;" class="really_simple_share robots-nocontent snap_nopreview"><div class="really_simple_share_facebook_like" style="width:50px;"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fthedaneshproject.com%2Fposts%2Flinux-tip-1-live-monitoring-with-tail%2F&amp;layout=button_count&amp;show_faces=false&amp;width=50&amp;action=like&amp;colorscheme=light&amp;send=false&amp;height=27" 
						scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:50px; height:27px;" allowTransparency="true"></iframe></div><div class="really_simple_share_google1" style="width:80px;"><div class="g-plusone" data-size="medium" data-href="http://thedaneshproject.com/posts/linux-tip-1-live-monitoring-with-tail/" ></div></div><div class="really_simple_share_twitter" style="width:110px;"><a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" 
						data-text="Linux Tip #1: Live monitoring with tail" data-url="http://thedaneshproject.com/posts/linux-tip-1-live-monitoring-with-tail/" 
						data-via=""  ></a></div></div>
		<div style="clear:both;"></div>Similar Posts:<ul><li><a href="http://thedaneshproject.com/posts/linux-tip-4-simple-sort-with-the-sort-command/" rel="bookmark" title="March 27, 2009">Linux Tip #4: Simple sort with the sort command</a></li>

<li><a href="http://thedaneshproject.com/posts/linux-tip-3-system-uptime-with-uptime/" rel="bookmark" title="March 23, 2009">Linux Tip #3: System uptime with uptime</a></li>

<li><a href="http://thedaneshproject.com/posts/linux-commands-tee/" rel="bookmark" title="March 26, 2008">Linux Commands: tee</a></li>

<li><a href="http://thedaneshproject.com/posts/linux-tip-5-reload-you-etcinittab-file/" rel="bookmark" title="April 14, 2009">Linux Tip #5: Reload you /etc/inittab file</a></li>

<li><a href="http://thedaneshproject.com/posts/linux-tip-7-disable-auto-logout-in-c-shell-csh/" rel="bookmark" title="May 21, 2009">Linux Tip #7: Disable auto logout in C Shell (csh)</a></li>
</ul><!-- Similar Posts took 4.521 ms -->]]></content:encoded>
			<wfw:commentRss>http://thedaneshproject.com/posts/linux-tip-1-live-monitoring-with-tail/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

