<?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>Dushan888- Technology &#38; FOSS for Humans &#187; commands</title>
	<atom:link href="http://dushan888.wordpress.com/tag/commands/feed/" rel="self" type="application/rss+xml" />
	<link>http://dushan888.wordpress.com</link>
	<description>Technology &#38; FOSS for Humans!</description>
	<lastBuildDate>Fri, 25 Dec 2009 15:27:07 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='dushan888.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/8261350af7612de99794c0b1aa067da4?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Dushan888- Technology &#38; FOSS for Humans &#187; commands</title>
		<link>http://dushan888.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://dushan888.wordpress.com/osd.xml" title="Dushan888- Technology &amp; FOSS for Humans" />
		<item>
		<title>Awesome to work in CLI [Not for Masters but for Beginners]</title>
		<link>http://dushan888.wordpress.com/2008/10/31/awesome-to-work-in-cli-not-for-masters-but-for-beginners/</link>
		<comments>http://dushan888.wordpress.com/2008/10/31/awesome-to-work-in-cli-not-for-masters-but-for-beginners/#comments</comments>
		<pubDate>Fri, 31 Oct 2008 03:09:32 +0000</pubDate>
		<dc:creator>Dushi</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[Technical]]></category>
		<category><![CDATA[cli]]></category>
		<category><![CDATA[commands]]></category>
		<category><![CDATA[dushan]]></category>
		<category><![CDATA[dushi]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://dushan888.wordpress.com/?p=42</guid>
		<description><![CDATA[Lets say its HOT! I just started to work in command line. Its awesome, its reliable, fast and powerful. So this is to give some basics of CLI for beginners.  First I started it with getting know to move around the the file system. Because its always good to start in level 0.
            Fire up [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dushan888.wordpress.com&blog=3513735&post=42&subd=dushan888&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p class="MsoNormal" style="margin:0;"><span style="font-size:small;font-family:Times;">Lets say its HOT! I just started to work in command line. Its awesome, its reliable, fast and powerful. So this is to give some basics of CLI for beginners.<span>  </span>First I started it with getting know to move around the the file system. Because its always good to start in level 0.</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:small;"><span style="font-family:Times;"><span>            </span>Fire up your terminel/konsole (I prefer Yakuake for this. But its upto you to make the choice). Type the following commands,</span></span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:small;"><span style="font-family:Times;"><strong>pwd<span>        </span>-</strong>it gives the present working directory.<span>  </span></span></span></p>
<p class="MsoNormal" style="margin:0;"><span><span style="font-size:small;font-family:Times;">            </span></span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:small;font-family:Times;"> </span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:small;"><span style="font-family:Times;"><strong>ls<span>         </span><span>     </span>- </strong>show you the directories and files which is in your present/home <span>                                       </span>      directory</span></span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:small;font-family:Times;"> </span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:small;font-family:Times;"> </span></p>
<p class="MsoNormal" style="text-indent:-35.45pt;margin:0 0 0 35.45pt;"><span style="font-size:small;"><span style="font-family:Times;"><strong>cd<span>        </span><span>     </span>- </strong>user can access a<span>  </span>directory wich is in the home diretory by giving<span>                             </span><span>          </span><span>       </span>the spesific directory name with <strong>cd</strong></span></span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:small;"><span style="font-family:Times;"><span>                                    </span>example: cd directory_name</span></span></p>
<p class="MsoNormal" style="margin:0;"><strong><span style="font-size:small;font-family:Times;"> </span></strong></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:small;"><span style="font-family:Times;"><strong>cd</strong> <strong>..<span>     </span><span>     </span>- </strong>user can exit/go back from the current directory to its parent directory</span></span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:small;font-family:Times;"> </span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:small;"><span style="font-family:Times;"><strong>ls<span>         </span><span>  </span>- </strong>list the items in the directory.<span>  </span>If the user wants to view this info in long format, type <strong>ls -l </strong></span></span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:small;"><span style="font-family:Times;"><span>            </span><span>   </span>If he/she wants to the view all the files including the hidden files, he/she can use <strong>ls -al </strong>or<strong> ls a</strong></span></span></p>
<p class="MsoNormal" style="margin:0;"><strong><span style="font-size:small;"><span style="font-family:Times;"><span>    </span></span></span></strong></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:small;font-family:Times;">When using this <strong>ls </strong>command, it explains a lot. consider the example,</span></p>
<p class="MsoNormal" style="margin:0;"> </p>
<div id="attachment_43" class="wp-caption alignnone" style="width: 520px"><a href="http://dushan888.files.wordpress.com/2008/10/ls.png"><img class="size-full wp-image-43" title="ls -l" src="http://dushan888.files.wordpress.com/2008/10/ls.png?w=510&#038;h=252" alt="ls -l" width="510" height="252" /></a><p class="wp-caption-text">ls -l</p></div>
<p class="MsoNormal" style="margin:0;"> </p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:small;"><span style="font-family:Times New Roman;"> </span></span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:small;font-family:Times;">I have divided this into 9 parts to make it easy to explain. </span></p>
<ol style="margin-top:0;" type="1">
<li class="MsoNormal"><span style="font-size:small;font-family:Times;">the 1<sup>st</sup> character is to say the file type.<span>  </span>&#8216;d&#8217; = directory ,&#8217;-&#8217; = normal file &amp; &#8216;l&#8217; = symbolic link</span></li>
<li class="MsoNormal"><span style="font-size:small;font-family:Times;">indicates the<span>  </span>permission pattern. In here there are 3 types of parties and gives permission for 3 different type of actions. The 3 parties are, </span></li>
</ol>
<p class="MsoNormal" style="margin:0 0 0 .5in;"><span style="font-size:small;font-family:Times;">A-<span>  </span>Owner of<span>  </span>file<span>                     </span>B-<span>  </span>Member of Group<span>              </span>C- World</span></p>
<p class="MsoNormal" style="margin:0 0 0 .5in;"><span style="font-size:small;font-family:Times;">The 3 actions are,</span></p>
<p class="MsoNormal" style="margin:0 0 0 .5in;"><span style="font-size:small;font-family:Times;">r- read<span>              </span>w- write<span>           </span>x- execute</span></p>
<p class="MsoNormal" style="margin:0 0 0 .5in;"><span style="font-size:small;font-family:Times;">According to my example, the Owner have permission to Read, Write and Execute. But the Group member and World have permission only to Read and Execute.</span></p>
<ol style="margin-top:0;" type="1">
<li class="MsoNormal"><span style="font-size:small;"><span style="font-family:Times;"><span> </span>Number of<span>  </span>links to file or directory contents </span></span></li>
<li class="MsoNormal"><span style="font-size:small;font-family:Times;">Owners name </span></li>
<li class="MsoNormal"><span style="font-size:small;font-family:Times;">Name of the group </span></li>
<li class="MsoNormal"><span style="font-size:small;font-family:Times;">Size of the file</span></li>
<li class="MsoNormal"><span style="font-size:small;font-family:Times;">Date last modified</span></li>
<li class="MsoNormal"><span style="font-size:small;font-family:Times;">Time last modified </span></li>
<li class="MsoNormal"><span style="font-size:small;font-family:Times;">Name of the directory/file. According to me the directory name is &#8216;Blender&#8217;</span></li>
</ol>
<p class="MsoNormal" style="margin:0;"><span style="font-size:small;font-family:Times;"> </span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:small;font-family:Times;"> </span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:small;"><span style="font-family:Times;"><strong><span> </span></strong>Ok now I type <strong>su </strong>and enter root password to get root privileges. then I type, </span></span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:small;"><span style="font-family:Times;"><strong>chmod 575 Blender </strong><span> </span>and press enter. </span></span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:small;font-family:Times;">Notice the difference,</span></p>
<p class="MsoNormal" style="margin:0;"> </p>
<div id="attachment_45" class="wp-caption aligncenter" style="width: 474px"><a href="http://dushan888.files.wordpress.com/2008/10/chmod-575-blender1.png"><img class="size-full wp-image-45" title="chmod-575 blender" src="http://dushan888.files.wordpress.com/2008/10/chmod-575-blender1.png?w=464&#038;h=79" alt="chmod-575 blender" width="464" height="79" /></a><p class="wp-caption-text">chmod-575 blender</p></div>
<p class="MsoNormal" style="margin:0;"><span style="font-size:small;"><span style="font-family:Times;"><span>            </span>The permission pattern has changed. The reason is,</span></span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:small;font-family:Times;"><strong>7</strong>=111 in binary = rwx and <strong>5</strong>= 101 in binary = r-x<span>  </span>. This is the way to assign permision.</span></p>
<p class="MsoNormal" style="margin:0;"><strong><span style="font-size:small;font-family:Times;"> </span></strong></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:small;"><span style="font-family:Times;"><span>            </span>You can change the &#8216;Group&#8217; by giving the following command,</span></span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:small;"><span style="font-family:Times;"><strong>chgrp user file</strong><span>  </span><span>                      </span>watch how I have don it,</span></span></p>
<div id="attachment_46" class="wp-caption aligncenter" style="width: 474px"><a href="http://dushan888.files.wordpress.com/2008/10/chgrp.png"><img class="size-full wp-image-46" title="chgrp" src="http://dushan888.files.wordpress.com/2008/10/chgrp.png?w=464&#038;h=79" alt="chgrp" width="464" height="79" /></a><p class="wp-caption-text">chgrp</p></div>
<p class="MsoNormal" style="margin:0;"><span style="font-size:small;font-family:Times;">to change the ownership give this command,</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:small;"><span style="font-family:Times;"><strong>chown name file </strong><span>         </span>same as the above.</span></span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:small;"><span style="font-family:Times;"><span>            </span>Ok enough CLI for this post. But here on I m going to continue this awesome work and share the experience with you! Finally command your computer to shutdown after a minute ! </span></span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:small;"><span style="font-family:Times;"><span>            </span><strong>shoutdown<span>  </span>1</strong></span></span></p>
<p class="MsoNormal" style="margin:0;"><strong><span style="font-size:small;font-family:Times;"> </span></strong></p>
<p class="MsoNormal" style="margin:0;"><strong><span style="font-size:small;font-family:Times;"> </span></strong></p>
<p class="MsoNormal" style="margin:0;"><span><span style="font-size:small;"><span style="font-family:Times;">For more action visite </span></span></span></p>
<p class="MsoNormal" style="margin:0;"><span><a href="http://www.tldp.org/"><span style="font-size:small;font-family:Times;">www.tldp.org</span></a></span></p>
<p class="MsoNormal" style="margin:0;"><span><a href="http://www.freeengineer.org/"><span style="font-size:small;font-family:Times;">www.freeengineer.org</span></a></span></p>
<p class="MsoNormal" style="margin:0;"><strong><span style="font-size:small;"><span style="font-family:Times;"><span>                                                </span></span></span></strong></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:small;"><span style="font-family:Times;"><span>                                                      </span>…&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;..later&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.</span></span></p>
<p class="MsoNormal" style="margin:0;"> </p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dushan888.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dushan888.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dushan888.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dushan888.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dushan888.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dushan888.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dushan888.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dushan888.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dushan888.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dushan888.wordpress.com/42/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dushan888.wordpress.com&blog=3513735&post=42&subd=dushan888&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://dushan888.wordpress.com/2008/10/31/awesome-to-work-in-cli-not-for-masters-but-for-beginners/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8cc9ef6d86394a37e85e624071a8e34c?s=96&#38;d=identicon" medium="image">
			<media:title type="html">Dushi</media:title>
		</media:content>

		<media:content url="http://dushan888.files.wordpress.com/2008/10/ls.png" medium="image">
			<media:title type="html">ls -l</media:title>
		</media:content>

		<media:content url="http://dushan888.files.wordpress.com/2008/10/chmod-575-blender1.png" medium="image">
			<media:title type="html">chmod-575 blender</media:title>
		</media:content>

		<media:content url="http://dushan888.files.wordpress.com/2008/10/chgrp.png" medium="image">
			<media:title type="html">chgrp</media:title>
		</media:content>
	</item>
	</channel>
</rss>