<?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>LinuxMonk &#187; Bash</title>
	<atom:link href="http://www.linuxmonk.org/tag/bash/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.linuxmonk.org</link>
	<description>A Journey Towards Infinity...</description>
	<lastBuildDate>Fri, 16 Jul 2010 19:32:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Fun with Forkbombs</title>
		<link>http://www.linuxmonk.org/2009/05/25/fun-with-forkbombs/</link>
		<comments>http://www.linuxmonk.org/2009/05/25/fun-with-forkbombs/#comments</comments>
		<pubDate>Mon, 25 May 2009 06:03:05 +0000</pubDate>
		<dc:creator>Rosario</dc:creator>
				<category><![CDATA[Bash]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Shell]]></category>

		<guid isPermaLink="false">http://www.linuxmonk.org/?p=274</guid>
		<description><![CDATA[Try this small shell script in your terminal. To have more fun remote login to others desktops and try this command in the terminal. ){ :&#38; };: This is a strange command in linux which crashes the system. Let me explain what exactly happens when this command is executed. ) &#8211; Function header where : [...]]]></description>
			<content:encoded><![CDATA[<p style="margin-bottom: 0in;">Try this small shell script in your terminal. To have more fun remote login to others desktops and try this command in the terminal.</p>
<blockquote>
<p style="margin-bottom: 0in;"><strong> <img src='http://www.linuxmonk.org/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> ){ <img src='http://www.linuxmonk.org/wp-includes/images/smilies/icon_neutral.gif' alt=':|' class='wp-smiley' /> :&amp; };:</strong></p>
</blockquote>
<p style="margin-bottom: 0in;">This is a strange command in linux which crashes the system. Let me explain what exactly happens when this command is executed.</p>
<ul>
<li> <img src='http://www.linuxmonk.org/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> ) &#8211; Function header where : is the name of the function(Colon and two parenthesis)</li>
<li>{ Opens the body of the function</li>
<li> A blank space is more important here, to have a good syntax</li>
<li>: recursive call to the same function(Colon)</li>
<li>|- pipes the out put of one function call to another</li>
<li>: which calls the function again (Colon)</li>
<li>&amp; Forks, creates a child process and assigns the function call to it</li>
<li>} Closes the function definition</li>
<li>; delimiter to end the function definition (Semicolon)</li>
<li>: actual call to the function(Colon)</li>
</ul>
<p style="margin-bottom: 0in;">
<p style="margin-bottom: 0in;">So the above script calls recursively itself twice and forks it to a child process indefinitly. At a point the memory gets full and the system crashes. You can gaurd yourself from forkbombs by restricting the number of process that can be executed at a time. Have fun with fork bombs&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxmonk.org/2009/05/25/fun-with-forkbombs/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Some Frequently used Linux Commands</title>
		<link>http://www.linuxmonk.org/2009/05/24/some-frequently-used-linux-commands/</link>
		<comments>http://www.linuxmonk.org/2009/05/24/some-frequently-used-linux-commands/#comments</comments>
		<pubDate>Sun, 24 May 2009 14:41:14 +0000</pubDate>
		<dc:creator>Rosario</dc:creator>
				<category><![CDATA[Bash]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Shell]]></category>

		<guid isPermaLink="false">http://www.linuxmonk.org/?p=269</guid>
		<description><![CDATA[Here are some of the frequently and very useful linux commands Command Description top A dynamic task list ps -e To view the current snapshot of proccess at a time kill &#60;process-id&#62; Kill a process by specifying its id. Process id can be found from the previous command killall &#60;process-name&#62; Kill a process with its [...]]]></description>
			<content:encoded><![CDATA[<p>Here are some of the frequently and very useful linux commands</p>
<p style="margin-bottom: 0in;">
<table style="height: 431px;" border="1" cellspacing="0" cellpadding="4" width="541" bordercolor="#000000">
<col width="250"></col>
<col width="312"></col>
<tbody>
<tr valign="top">
<td><strong>Command</strong></td>
<td width="312"><strong>Description</strong></td>
</tr>
<tr valign="top">
<td>top</td>
<td width="312">A dynamic task list</td>
</tr>
<tr valign="top">
<td>ps -e</td>
<td width="312">To view the current snapshot of proccess at a time</td>
</tr>
<tr valign="top">
<td>kill &lt;process-id&gt;</td>
<td width="312">Kill a process by specifying its id. Process id can be found 			from the previous command</td>
</tr>
<tr valign="top">
<td>killall &lt;process-name&gt;</td>
<td width="312">Kill a process with its process name. The process name can be 			found using ps -e command</td>
</tr>
<tr valign="top">
<td>fdisk -l</td>
<td width="312">Displays the partion table and list of all the memory devices 			connected to the system</td>
</tr>
<tr valign="top">
<td>mount /dev/&lt;device-name&gt;  /path/to/mountpoint</td>
<td width="312">Used to mount a external or internal memory device to the 			system. The device name can be found from the previous command.</td>
</tr>
<tr valign="top">
<td>mount -t ntfs-3g /dev/&lt;device-name&gt;  /path/to/mountpoint 			-o force</td>
<td width="312">To force mount a memory device which uses ntfs file system</td>
</tr>
<tr valign="top">
<td>sudo nautilus</td>
<td width="312">To open the file browser in root mode. Normally when u open the 			file browser in ubuntu it will not be in root mode. Provided the 			currnet user is a sudoer</td>
</tr>
<tr valign="top">
<td>locate &lt;file-name-pattern&gt;</td>
<td width="312">Used to search or find files by their names. Normally the 			search is done based on a index database. It is good to update the 			database before searching to get recently created files.</td>
</tr>
<tr valign="top">
<td>updatedb</td>
<td width="312">Used to update the file index database</td>
</tr>
<tr valign="top">
<td>cat &lt;filename&gt;</td>
<td width="312">Display the contents of a file</td>
</tr>
<tr valign="top">
<td>cat &lt;filename&gt; | grep &lt;pattern&gt;</td>
<td width="312">The output of the first command is given as input to the next 			command using a pipe. Grep command display the lines that has 			pattern text</td>
</tr>
</tbody>
</table>
<p style="margin-bottom: 0in;">
<p style="margin-bottom: 0in;">Use,   man&lt;command-name&gt; to get more details about all the above commands</p>
<p style="margin-bottom: 0in;">
<p style="margin-bottom: 0in;">
]]></content:encoded>
			<wfw:commentRss>http://www.linuxmonk.org/2009/05/24/some-frequently-used-linux-commands/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Knowing Currently running Kernel image version and GCC version used to compile the Kernel</title>
		<link>http://www.linuxmonk.org/2008/06/25/knowing-currently-running-kernel-image-version-and-gcc-version-used-to-compile-the-kernel/</link>
		<comments>http://www.linuxmonk.org/2008/06/25/knowing-currently-running-kernel-image-version-and-gcc-version-used-to-compile-the-kernel/#comments</comments>
		<pubDate>Wed, 25 Jun 2008 15:54:11 +0000</pubDate>
		<dc:creator>Rosario</dc:creator>
				<category><![CDATA[Bash]]></category>
		<category><![CDATA[kernel]]></category>

		<guid isPermaLink="false">http://linuxmonk.wordpress.com/?p=14</guid>
		<description><![CDATA[The command used to find the $cat /proc/version Eg.. $ cat /proc/version Linux version 2.6.24-16-generic (buildd@palmer) (gcc version 4.2.3 (Ubuntu 4.2.3-2ubuntu7)) #1 SMP Thu Apr 10 13:23:42 UTC 2008 Similarly for knowing the CPU information use the command $cat /proc/cpuinfo If you are using a Core 2 duo processor informations of both the processors will [...]]]></description>
			<content:encoded><![CDATA[<p><!-- 		@page { size: 21cm 29.7cm; margin: 2cm } 		P { margin-bottom: 0.21cm } --></p>
<p style="margin-bottom:0;">The command used to find the   $cat /proc/version</p>
<p style="margin-bottom:0;">Eg..</p>
<p><strong><em>$ cat /proc/version</em><br />
<em>Linux version 2.6.24-16-generic (buildd@palmer) (gcc version 4.2.3 (Ubuntu 4.2.3-2ubuntu7)) #1 SMP Thu Apr 10 13:23:42 UTC 2008 </em></strong></p>
<p style="margin-bottom:0;">
<p style="margin-bottom:0;">Similarly for knowing  the CPU information use the command</p>
<p style="margin-bottom:0;"><strong><em>$cat /proc/cpuinfo</em></strong></p>
<p style="margin-bottom:0;">If you are using a Core 2 duo processor informations of both the processors will be listed separatly. Check it out&#8230;..</p>
<p style="margin-bottom:0;">Similarly /proc/ directory has many files use cat command to many information line meory info, swap space informations, etc using appropriate files.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxmonk.org/2008/06/25/knowing-currently-running-kernel-image-version-and-gcc-version-used-to-compile-the-kernel/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
