<?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; cli</title>
	<atom:link href="http://dushan888.wordpress.com/tag/cli/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; cli</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>Command Line Package Management [Debian Based]</title>
		<link>http://dushan888.wordpress.com/2009/05/06/command-line-package-management-debian-based/</link>
		<comments>http://dushan888.wordpress.com/2009/05/06/command-line-package-management-debian-based/#comments</comments>
		<pubDate>Wed, 06 May 2009 17:00:20 +0000</pubDate>
		<dc:creator>Dushi</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[Technical]]></category>
		<category><![CDATA[apt]]></category>
		<category><![CDATA[cli]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[dushan888]]></category>
		<category><![CDATA[dushi]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[linux package management]]></category>

		<guid isPermaLink="false">http://dushan888.wordpress.com/?p=330</guid>
		<description><![CDATA[you can use &#8216;apt-get&#8217; tool to manage packages via the CLI instead of using the GUI. &#8216;apt-get&#8217; can be used to install and uninstall packages as we needed. For your convenience Im going to introduce another CLI tool , &#8216;dpkg&#8217;. Most of  you may already have useded it.
Installing a program:
system will check the repositories [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dushan888.wordpress.com&blog=3513735&post=330&subd=dushan888&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>you can use &#8216;apt-get&#8217; tool to manage packages via the CLI instead of using the GUI. &#8216;apt-get&#8217; can be used to install and uninstall packages as we needed. For your convenience Im going to introduce another CLI tool , &#8216;dpkg&#8217;. Most of  you may already have useded it.</p>
<p><strong>Installing a program</strong>:</p>
<div id="attachment_329" class="wp-caption aligncenter" style="width: 405px"><img class="size-full wp-image-329" title="apt-get install" src="http://dushan888.files.wordpress.com/2009/05/1.png?w=395&#038;h=20" alt="apt-get install" width="395" height="20" /><p class="wp-caption-text">apt-get install</p></div>
<p>system will check the repositories and install it into the pc from a desired place. By default it will connect your PC to a FTP server and download the required package and its dependencies, then install. This method is highly effective for a good installation.</p>
<p>If you want to install a package which is already saved in your pc,</p>
<div id="attachment_331" class="wp-caption aligncenter" style="width: 388px"><img class="size-full wp-image-331" title="dpkg -i" src="http://dushan888.files.wordpress.com/2009/05/2.png?w=378&#038;h=23" alt="dpkg -i" width="378" height="23" /><p class="wp-caption-text">dpkg -i</p></div>
<p>At times you have to download the package source code/binaries and compile it then install. To do that go in to that folder and follow the following steps,</p>
<p>#./configure<br />
#make<br />
#make install</p>
<p><strong>Uninstalling a program:</strong></p>
<p>same tools again!</p>
<div id="attachment_332" class="wp-caption aligncenter" style="width: 240px"><img class="size-full wp-image-332" title="dpkg --list" src="http://dushan888.files.wordpress.com/2009/05/3.png?w=230&#038;h=22" alt="dpkg --list" width="230" height="22" /><p class="wp-caption-text">dpkg --list</p></div>
<p>using the above code you can get a list of installed programs.You can use &#8216;apt-get&#8217; as shown bellow to remove programs,</p>
<div id="attachment_334" class="wp-caption aligncenter" style="width: 400px"><img class="size-full wp-image-334" title="apt-get remove" src="http://dushan888.files.wordpress.com/2009/05/41.png?w=390&#038;h=23" alt="apt-get remove" width="390" height="23" /><p class="wp-caption-text">apt-get remove</p></div>
<p>when after performing an &#8216;apt-get install&#8217;, by experience you ll understand that its installing  also other packages as dependencies. We can also remove a program with all its dependencies.</p>
<div id="attachment_335" class="wp-caption aligncenter" style="width: 465px"><img class="size-full wp-image-335" title="apt-get --purge" src="http://dushan888.files.wordpress.com/2009/05/5.png?w=455&#038;h=24" alt="apt-get --purge" width="455" height="24" /><p class="wp-caption-text">apt-get --purge</p></div>
<p style="text-align:center;">these are the basics of Linux file management via CLI. Feel free to experiment the commands and rediscover the CLI.<br />
&#8230;&#8230;&#8230;&#8230;&#8230;..enjoy&#8230;&#8230;&#8230;&#8230;&#8230;.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dushan888.wordpress.com/330/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dushan888.wordpress.com/330/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dushan888.wordpress.com/330/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dushan888.wordpress.com/330/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dushan888.wordpress.com/330/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dushan888.wordpress.com/330/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dushan888.wordpress.com/330/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dushan888.wordpress.com/330/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dushan888.wordpress.com/330/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dushan888.wordpress.com/330/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dushan888.wordpress.com&blog=3513735&post=330&subd=dushan888&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://dushan888.wordpress.com/2009/05/06/command-line-package-management-debian-based/feed/</wfw:commentRss>
		<slash:comments>0</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/2009/05/1.png" medium="image">
			<media:title type="html">apt-get install</media:title>
		</media:content>

		<media:content url="http://dushan888.files.wordpress.com/2009/05/2.png" medium="image">
			<media:title type="html">dpkg -i</media:title>
		</media:content>

		<media:content url="http://dushan888.files.wordpress.com/2009/05/3.png" medium="image">
			<media:title type="html">dpkg --list</media:title>
		</media:content>

		<media:content url="http://dushan888.files.wordpress.com/2009/05/41.png" medium="image">
			<media:title type="html">apt-get remove</media:title>
		</media:content>

		<media:content url="http://dushan888.files.wordpress.com/2009/05/5.png" medium="image">
			<media:title type="html">apt-get --purge</media:title>
		</media:content>
	</item>
		<item>
		<title>Creating .iso Files</title>
		<link>http://dushan888.wordpress.com/2008/12/16/creating-iso-files/</link>
		<comments>http://dushan888.wordpress.com/2008/12/16/creating-iso-files/#comments</comments>
		<pubDate>Tue, 16 Dec 2008 02:51:58 +0000</pubDate>
		<dc:creator>Dushi</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[Technical]]></category>
		<category><![CDATA[cli]]></category>
		<category><![CDATA[creating .iso]]></category>
		<category><![CDATA[dushan888]]></category>
		<category><![CDATA[dushi]]></category>
		<category><![CDATA[iso]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://dushan888.wordpress.com/?p=165</guid>
		<description><![CDATA[Its kind a cool to create .iso images in Linux because it don&#8217;t require any special software to do it. All you have to do is to handle some commands in CLI. So put your CD/DVD into the ROM and open up the terminal/konsole. I ll  show 3 methods to do this,
method 0.
              This is [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dushan888.wordpress.com&blog=3513735&post=165&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 New Roman;">Its kind a cool to create .iso images in Linux because it don&#8217;t require any special software to do it. All you have to do is to handle some commands in CLI. So put your CD/DVD into the ROM and open up the terminal/konsole. I ll<span>  </span>show 3 methods to do this,</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:small;font-family:Times New Roman;">method 0.</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:small;font-family:Times New Roman;">              This is my favorite! Follow the code <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </span></p>
<p><span style="font-family:Times New Roman;"><span style="font-size:12pt;font-family:&quot;"><strong>&#8216;dd&#8217; </strong></span><span style="font-size:12pt;font-family:&quot;">means disk dump. Actually this has to be &#8216;convert and copy&#8217;, but <strong>&#8216;cc&#8217; </strong>is already using in gnu <span>   </span>compiler collection so they are using &#8216;dd&#8217;. &#8216;<strong>if</strong>&#8216; and &#8216;<strong>of</strong>&#8216; stands for input file and output file.</span></span>This method makes the .iso file at your &#8216;/home&#8217; directory by its default. I think this is the easiest way to finish the job.</p>
<dl class="wp-caption aligncenter">
<dt class="wp-caption-dt"><img class="size-full wp-image-166" title="Method 0" src="http://dushan888.files.wordpress.com/2008/12/pic11.png?w=457&#038;h=93" alt="Method 0" width="457" height="93" /></dt>
<dd class="wp-caption-dd">Method 0</dd>
</dl>
<p> </p>
<p class="mceTemp mceIEcenter" style="text-align:left;"> <span style="font-family:Times New Roman;"><span style="font-size:12pt;font-family:&quot;">method 1.</span></span></p>
<p class="MsoNormal" style="margin:0;">               If your going to use this method first you should have to unmount your optical drive</p>
<p class="MsoNormal" style="margin:0;"> </p>
<div id="attachment_173" class="wp-caption aligncenter" style="width: 397px"><img class="size-full wp-image-173" title="Method" src="http://dushan888.files.wordpress.com/2008/12/pic22.png?w=387&#038;h=91" alt="Method" width="387" height="91" /><p class="wp-caption-text">Method</p></div>
<p> </p>
<p class="MsoNormal" style="margin:0;">method 2.</p>
<p class="MsoNormal" style="margin:0;"><strong>              mkisofs -o /path_to_.iso_file /path_to_optical_drive</strong></p>
<p class="MsoNormal" style="margin:0;">So this is it. There can be many other ways to create .iso files. Thats because GNU/Linux means &#8216;choice of options&#8217;. Enjoy&#8230;..!<span>  </span></p>
<p> </p>
<p class="MsoNormal" style="margin:0;"> </p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dushan888.wordpress.com/165/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dushan888.wordpress.com/165/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dushan888.wordpress.com/165/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dushan888.wordpress.com/165/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dushan888.wordpress.com/165/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dushan888.wordpress.com/165/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dushan888.wordpress.com/165/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dushan888.wordpress.com/165/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dushan888.wordpress.com/165/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dushan888.wordpress.com/165/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dushan888.wordpress.com&blog=3513735&post=165&subd=dushan888&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://dushan888.wordpress.com/2008/12/16/creating-iso-files/feed/</wfw:commentRss>
		<slash:comments>1</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/12/pic11.png" medium="image">
			<media:title type="html">Method 0</media:title>
		</media:content>

		<media:content url="http://dushan888.files.wordpress.com/2008/12/pic22.png" medium="image">
			<media:title type="html">Method</media:title>
		</media:content>
	</item>
		<item>
		<title>Partitioning in Linux [cfdisk]</title>
		<link>http://dushan888.wordpress.com/2008/11/24/partitioning-in-linux-cfdisk/</link>
		<comments>http://dushan888.wordpress.com/2008/11/24/partitioning-in-linux-cfdisk/#comments</comments>
		<pubDate>Mon, 24 Nov 2008 03:09:23 +0000</pubDate>
		<dc:creator>Dushi</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[Technical]]></category>
		<category><![CDATA[cfdisk]]></category>
		<category><![CDATA[cli]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[dushan888]]></category>
		<category><![CDATA[dushi]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[Linux cli]]></category>
		<category><![CDATA[partitioning]]></category>
		<category><![CDATA[partitioning in linux]]></category>

		<guid isPermaLink="false">http://dushan888.wordpress.com/?p=111</guid>
		<description><![CDATA[Hi Fellows! My OS[Linux Mint] is near to crash because of my endless, inappropriate experiments. But what to do, My endless curiosity doesn&#8217;t leave My OS  alone. 
            In this post I m going to demonstrate how to partition a Hard Disk/Flash Drive without any extra tools. All you have to do is to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dushan888.wordpress.com&blog=3513735&post=111&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;">Hi Fellows! My OS[Linux Mint] is near to crash because of my endless, inappropriate experiments. But what to do, My endless curiosity doesn&#8217;t leave My OS<span>  </span>alone. </span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:small;"><span style="font-family:Times;"><span>  </span><span>          </span>In this post I m going to demonstrate how to partition a Hard Disk/Flash Drive without any extra tools. All you have to do is to enter some commands in CLI. I&#8217;m using My 1GB small old pen drive. And please make sure that you have chose the correct device. Else I don&#8217;t have to say what would happen!</span></span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:small;"><span style="font-family:Times;"><span>            </span>Open the terminal/konsole, then identify your device by giving,</span></span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:small;"><span style="font-family:Times;"><strong>fdisk -l <span>            </span></strong>(I have done this in an early time in detail)</span></span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:small;"><span style="font-family:Times;"><span>            </span>My device is <strong>/dev/sda1.</strong> </span></span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:small;"><span style="font-family:Times;"><strong>cfdisk /dev/sda1 </strong>(cfdisk is the Curses based disk partition table manipulator for Linux)</span></span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:small;font-family:Times;">then you l end with something like this,</span></p>
<div id="attachment_112" class="wp-caption aligncenter" style="width: 520px"><a href="http://dushan888.files.wordpress.com/2008/11/17.png"><img class="size-full wp-image-112 " title="cfdisk /dev/sda1" src="http://dushan888.files.wordpress.com/2008/11/17.png?w=510&#038;h=223" alt="fdisk /dev/sda1" width="510" height="223" /></a><p class="wp-caption-text">cfdisk /dev/sda1</p></div>
<p> <span style="font-size:12pt;font-family:Times;">In My example I m creating 2 partitions. And one of them is a swap area. Navigate to<span>  </span><strong>New</strong> using arrow keys. Press enter. you l end up with the following result,</span></p>
<p style="text-align:center;">
<div></div>
<p><span style="font-size:12pt;font-family:Times;"></p>
<div id="attachment_113" class="wp-caption aligncenter" style="width: 520px"><a href="http://dushan888.files.wordpress.com/2008/11/25.png"><img class="size-full wp-image-113 " title="Creating a New Primary partition" src="http://dushan888.files.wordpress.com/2008/11/25.png?w=510&#038;h=227" alt="step2" width="510" height="227" /></a><p class="wp-caption-text">Creating a New Primary partition</p></div>
<p> </p>
<p></span> Press Enter<strong>. </strong><span> </span>Then give the Partition size you want.</p>
<p style="text-align:center;">
<div id="attachment_114" class="wp-caption aligncenter" style="width: 520px"><a href="http://dushan888.files.wordpress.com/2008/11/34.png"><img class="size-full wp-image-114 " title="Assigning The Partition Size" src="http://dushan888.files.wordpress.com/2008/11/34.png?w=510&#038;h=182" alt="assigning the size" width="510" height="182" /></a><p class="wp-caption-text">Assigning The Partition Size</p></div>
<p class="MsoNormal" style="margin:0;">I gave 800MB for My 1<sup>st</sup> partition. Press Enter.</p>
<div id="attachment_116" class="wp-caption aligncenter" style="width: 520px"><a href="http://dushan888.files.wordpress.com/2008/11/44.png"><img class="size-full wp-image-116 " title="Add Partition at Beginning of Free Space" src="http://dushan888.files.wordpress.com/2008/11/44.png?w=510&#038;h=221" alt="add partition at beginning of free space" width="510" height="221" /></a><p class="wp-caption-text">Add Partition at Beginning of Free Space</p></div>
<p class="MsoNormal" style="margin:0;">Select <strong>Beginning. </strong>It will create the partition at the beginning. Or if you want it at the end select <strong>End.</strong><span style="font-size:12pt;font-family:Times;">As I done the fist partition(sda1p1), I have created another partition named sda1p2.</span></p>
<p style="text-align:center;">
<div></div>
<p><span style="font-size:12pt;font-family:Times;"></p>
<div id="attachment_117" class="wp-caption aligncenter" style="width: 520px"><a href="http://dushan888.files.wordpress.com/2008/11/53.png"><img class="size-full wp-image-117 " title="Two Partitions are Created" src="http://dushan888.files.wordpress.com/2008/11/53.png?w=510&#038;h=221" alt="created two partitions" width="510" height="221" /></a><p class="wp-caption-text">Two Partitions are Created</p></div>
<p class="MsoNormal" style="text-align:left;margin:0;">With the arrow keys navigate to <strong>Type. </strong>Then press Enter.</p>
<div id="attachment_118" class="wp-caption aligncenter" style="width: 520px"><a href="http://dushan888.files.wordpress.com/2008/11/63.png"><img class="size-full wp-image-118 " title="Selecting a File System" src="http://dushan888.files.wordpress.com/2008/11/63.png?w=510&#038;h=249" alt="selecting a file system" width="510" height="249" /></a><p class="wp-caption-text">Selecting a File System</p></div>
<p> </p>
<p></span> <span style="font-size:12pt;font-family:Times;">Check this out. you get a big list with a variety of file systems. I want mine as <strong>Linux Extended. </strong>I went step forward by pressing a key. Then gave the corresponding number for <strong>Linux Extended.</strong></span></p>
<p style="text-align:center;">
<div></div>
<p><span style="font-size:12pt;font-family:Times;"></p>
<div id="attachment_119" class="wp-caption aligncenter" style="width: 520px"><a href="http://dushan888.files.wordpress.com/2008/11/74.png"><img class="size-full wp-image-119 " title="Entering The Filr System Type" src="http://dushan888.files.wordpress.com/2008/11/74.png?w=510&#038;h=211" alt="entering the filr system type" width="510" height="211" /></a><p class="wp-caption-text">Entering The Filr System Type</p></div>
<p> </p>
<p></span> <span style="font-size:12pt;font-family:Times;">Following the same steps, I set the other partition&#8217;s file system as <strong>swap. </strong>Finally<strong> </strong>select<strong> Write </strong>and press Enter<strong>.</strong></span></p>
<p style="text-align:center;">
<p style="text-align:center;">
<div></div>
<p><span style="font-size:12pt;font-family:Times;"></p>
<div class="mceTemp mceIEcenter">
<dl class="wp-caption aligncenter">
<dt class="wp-caption-dt"><a href="http://dushan888.files.wordpress.com/2008/11/82.png"><img class="size-full wp-image-120 " title="Write Partition Table to Disk" src="http://dushan888.files.wordpress.com/2008/11/82.png?w=510&#038;h=223" alt="write partition table to disk" width="510" height="223" /></a></dt>
<dd class="wp-caption-dd">Write Partition Table to Disk</dd>
</dl>
<p class="MsoNormal" style="margin:0;">Its good to go! We are done with partitioning.<span>  </span></p>
<p class="MsoNormal" style="text-align:center;"><span>&#8230;&#8230;.Later&#8230;&#8230;</span></p>
</div>
<p> </p>
<p> </p>
<p></span></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dushan888.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dushan888.wordpress.com/111/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dushan888.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dushan888.wordpress.com/111/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dushan888.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dushan888.wordpress.com/111/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dushan888.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dushan888.wordpress.com/111/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dushan888.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dushan888.wordpress.com/111/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dushan888.wordpress.com&blog=3513735&post=111&subd=dushan888&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://dushan888.wordpress.com/2008/11/24/partitioning-in-linux-cfdisk/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/11/17.png" medium="image">
			<media:title type="html">cfdisk /dev/sda1</media:title>
		</media:content>

		<media:content url="http://dushan888.files.wordpress.com/2008/11/25.png" medium="image">
			<media:title type="html">Creating a New Primary partition</media:title>
		</media:content>

		<media:content url="http://dushan888.files.wordpress.com/2008/11/34.png" medium="image">
			<media:title type="html">Assigning The Partition Size</media:title>
		</media:content>

		<media:content url="http://dushan888.files.wordpress.com/2008/11/44.png" medium="image">
			<media:title type="html">Add Partition at Beginning of Free Space</media:title>
		</media:content>

		<media:content url="http://dushan888.files.wordpress.com/2008/11/53.png" medium="image">
			<media:title type="html">Two Partitions are Created</media:title>
		</media:content>

		<media:content url="http://dushan888.files.wordpress.com/2008/11/63.png" medium="image">
			<media:title type="html">Selecting a File System</media:title>
		</media:content>

		<media:content url="http://dushan888.files.wordpress.com/2008/11/74.png" medium="image">
			<media:title type="html">Entering The Filr System Type</media:title>
		</media:content>

		<media:content url="http://dushan888.files.wordpress.com/2008/11/82.png" medium="image">
			<media:title type="html">Write Partition Table to Disk</media:title>
		</media:content>
	</item>
		<item>
		<title>Awesome to work in CLI [Not for Masters but for Beginners] – Part III</title>
		<link>http://dushan888.wordpress.com/2008/11/13/awesome-to-work-in-cli-not-for-masters-but-for-beginners-%e2%80%93-part-iii/</link>
		<comments>http://dushan888.wordpress.com/2008/11/13/awesome-to-work-in-cli-not-for-masters-but-for-beginners-%e2%80%93-part-iii/#comments</comments>
		<pubDate>Thu, 13 Nov 2008 05:11:46 +0000</pubDate>
		<dc:creator>Dushi</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[Technical]]></category>
		<category><![CDATA[cli]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[dushan888]]></category>
		<category><![CDATA[dushi]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[Linux cli]]></category>

		<guid isPermaLink="false">http://dushan888.wordpress.com/?p=89</guid>
		<description><![CDATA[Hope my last two post gave some basics of Linux/CLI for your knowledge. From Part III I m l trying to demonstrate some file operations which is very common in CLI, stuff like making new directories/files, coping, moving and removing . Lets hit it from level 0. So fire up your Terminal/Konsole &#38; start working [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dushan888.wordpress.com&blog=3513735&post=89&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;">Hope my last two post gave some basics of Linux/CLI for your knowledge. From Part III I m l trying to demonstrate some file operations which is very common in CLI, stuff like making new directories/files, coping, moving and removing . Lets hit it from level 0. So fire up your Terminal/Konsole &amp; start working with me.</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:12pt;font-family:Times;">Lets start by making a new directory named D1.</span></p>
<p> </p>
<div id="attachment_90" class="wp-caption aligncenter" style="width: 294px"><a href="http://dushan888.files.wordpress.com/2008/11/16.png"><img class="size-full wp-image-90" title="Making a New Directory" src="http://dushan888.files.wordpress.com/2008/11/16.png?w=284&#038;h=27" alt="Making a New Directory" width="284" height="27" /></a><p class="wp-caption-text">Making a New Directory</p></div>
<p class="MsoNormal" style="margin:0;"> </p>
<p class="MsoNormal" style="text-align:left;margin:0;">You must be familiar with &#8216;<strong>mkdir&#8217; </strong>because we have used it before. In a moment when we have to create more than one directory, its not a must to create them one by one. See the example.</p>
<div id="attachment_91" class="wp-caption aligncenter" style="width: 520px"><a href="http://dushan888.files.wordpress.com/2008/11/24.png"><img class="size-full wp-image-91" title="Making More Than One Directory" src="http://dushan888.files.wordpress.com/2008/11/24.png?w=510&#038;h=44" alt="Making More Than One Directory" width="510" height="44" /></a><p class="wp-caption-text">Making More Than One Directory</p></div>
<p class="MsoNormal" style="text-align:left;margin:0;">I have created 3 more new folders/directories namely D2,D3 and D4 just entering a single command. Like that you can add more arguments with <strong>mkdir</strong>. It saves lot of time.</p>
<p class="MsoNormal" style="text-align:left;margin:0;"><span style="font-size:12pt;font-family:Times;">             Now try to make changes in our newly made directories. Its not working huh? it happens because of its default permission pattern. Check it out by giving <strong>ls -l. </strong>Now<strong><span>  </span></strong>I m assigning full rights to all, by giving 777 with <strong>chmod</strong> (<strong>chmod 777 directory_name</strong><span>  </span>see cli-partI for help) for my convenience. Now I m creating another directory named as D5 and configure its permission to 777. But in a single step,</span></p>
<p class="MsoNormal" style="text-align:left;margin:0;"> </p>
<div id="attachment_93" class="wp-caption aligncenter" style="width: 361px"><a href="http://dushan888.files.wordpress.com/2008/11/33.png"><strong><img class="size-full wp-image-93" title="Creating ang Changing Permision" src="http://dushan888.files.wordpress.com/2008/11/33.png?w=351&#038;h=19" alt="Creating ang Changing Permision" width="351" height="19" /></strong></a><p class="wp-caption-text">Creating ang Changing Permision</p></div>
<p class="MsoNormal" style="margin:0;">See, I didnt use <strong>chmod</strong> command. <strong>-m </strong>is to set the permission mode.<strong> </strong><span>    </span></p>
<p class="MsoNormal" style="text-align:left;margin:0;">Now I need another directory D6, with a subdirectory named sub1. this is how<span>  </span>I m making it,</p>
<div id="attachment_94" class="wp-caption aligncenter" style="width: 520px"><a href="http://dushan888.files.wordpress.com/2008/11/42.png"><img class="size-full wp-image-94" title="Creating Subdirectories" src="http://dushan888.files.wordpress.com/2008/11/42.png?w=510&#038;h=73" alt="Creating Subdirectories" width="510" height="73" /></a><p class="wp-caption-text">Creating Subdirectories</p></div>
<p class="MsoNormal" style="margin:0;">Tryout this with <strong>-m </strong>argument<strong>.</strong></p>
<p class="MsoNormal" style="text-align:left;margin:0;"><span style="font-size:12pt;font-family:Times;">Ok, now its time to make files. You can use <strong>touch </strong>command for this purpose<strong>. </strong>touch command enables the user to change access, modification time for a given file and create files.<span> Here, I m creating files inside of D1 directory.</span></span></p>
<p class="MsoNormal" style="text-align:left;margin:0;"> </p>
<div id="attachment_95" class="wp-caption aligncenter" style="width: 459px"><a href="http://dushan888.files.wordpress.com/2008/11/52.png"><strong><img class="size-full wp-image-95" title="touch" src="http://dushan888.files.wordpress.com/2008/11/52.png?w=449&#038;h=120" alt="touch" width="449" height="120" /></strong></a><p class="wp-caption-text">touch</p></div>
<p class="MsoNormal" style="text-align:left;margin:0;"><span>I have created 5 different files with different extensions. use <strong>stat </strong></span>command to get more info about a specific file.</p>
<div id="attachment_96" class="wp-caption aligncenter" style="width: 520px"><a href="http://dushan888.files.wordpress.com/2008/11/62.png"><img class="size-full wp-image-96" title="stat" src="http://dushan888.files.wordpress.com/2008/11/62.png?w=510&#038;h=108" alt="stat" width="510" height="108" /></a><p class="wp-caption-text">stat</p></div>
<p class="MsoNormal" style="text-align:left;margin:0;">Notice the Access time. I can change it to my present time with <strong>-a</strong> argument.</p>
<div id="attachment_97" class="wp-caption aligncenter" style="width: 519px"><a href="http://dushan888.files.wordpress.com/2008/11/73.png"><img class="size-full wp-image-97" title="-a argument" src="http://dushan888.files.wordpress.com/2008/11/73.png?w=509&#038;h=121" alt="-a argument" width="509" height="121" /></a><p class="wp-caption-text">-a argument</p></div>
<p class="MsoNormal" style="text-align:left;margin:0;">Like that I can also change the Modify time to my present time with <strong>-m</strong> argument.</p>
<div id="attachment_98" class="wp-caption aligncenter" style="width: 520px"><a href="http://dushan888.files.wordpress.com/2008/11/81.png"><img class="size-full wp-image-98" title="-m argument" src="http://dushan888.files.wordpress.com/2008/11/81.png?w=510&#038;h=122" alt="-m argument" width="510" height="122" /></a><p class="wp-caption-text">-m argument</p></div>
<p class="MsoNormal" style="text-align:left;margin:0;"> </p>
<p class="MsoNormal" style="text-align:left;margin:0;"><span style="font-size:12pt;font-family:Times;">User can also assign date/time for his/her request. I m changing the date into 2009/jan/15 and time into 12.48.10. Here we go,</span></p>
<p> </p>
<div id="attachment_99" class="wp-caption aligncenter" style="width: 520px"><a href="http://dushan888.files.wordpress.com/2008/11/92.png"><img class="size-full wp-image-99" title="Changing Date/Time for User Request" src="http://dushan888.files.wordpress.com/2008/11/92.png?w=510&#038;h=121" alt="Changing Date/Time for User Request" width="510" height="121" /></a><p class="wp-caption-text">Changing Date/Time for User Request</p></div>
<p> </p>
<div class="mceTemp mceIEcenter"> </div>
<p class="MsoNormal" style="margin:0;">Coping is another file operation. In CLI <strong>cp</strong> is used for this. <strong>cp </strong>can be used with many arguments and it can be done in many ways . Here I m coping D1 and its content into D2,</p>
<div id="attachment_100" class="wp-caption aligncenter" style="width: 336px"><a href="http://dushan888.files.wordpress.com/2008/11/101.png"><img class="size-full wp-image-100" title="cp" src="http://dushan888.files.wordpress.com/2008/11/101.png?w=326&#038;h=100" alt="cp" width="326" height="100" /></a><p class="wp-caption-text">cp</p></div>
<p class="MsoNormal" style="margin:0;">Now I m coping only the content of D1 into D3,</p>
<div id="attachment_103" class="wp-caption aligncenter" style="width: 456px"><a href="http://dushan888.files.wordpress.com/2008/11/113.png"><img class="size-full wp-image-103" title="Coping Only the Content" src="http://dushan888.files.wordpress.com/2008/11/113.png?w=446&#038;h=68" alt="Coping Only the Content" width="446" height="68" /></a><p class="wp-caption-text">Coping Only the Content</p></div>
<p class="MsoNormal" style="margin:0;"><span style="font-size:small;font-family:Times;">And watch this,</span></p>
<div id="attachment_104" class="wp-caption aligncenter" style="width: 408px"><a href="http://dushan888.files.wordpress.com/2008/11/122.png"><img class="size-full wp-image-104" title="-i with cp" src="http://dushan888.files.wordpress.com/2008/11/122.png?w=398&#038;h=44" alt="-i with cp" width="398" height="44" /></a><p class="wp-caption-text">-i with cp</p></div>
<p class="MsoNormal" style="margin:0;"><span style="font-size:small;"><span style="font-family:Times;"><strong>-i</strong> prompt you before overwriting a file<span>  </span><strong><span> </span></strong><span> </span></span></span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:small;font-family:Times;">This is not all with <strong>cp</strong> command. It can work with many other arguments.</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:small;font-family:Times;">Moving is another important file operation. You can perform it in the same way we<span>  </span>copied files and directories. But you have to give <strong>mv</strong> command instead of giving <strong>cp.<span>  </span>mv </strong>is also used to rename files and directories.</span></p>
<div id="attachment_105" class="wp-caption aligncenter" style="width: 520px"><a href="http://dushan888.files.wordpress.com/2008/11/133.png"><img class="size-full wp-image-105" title="Renaming a File/Directories" src="http://dushan888.files.wordpress.com/2008/11/133.png?w=510&#038;h=34" alt="Renaming a File/Directories" width="510" height="34" /></a><p class="wp-caption-text">Renaming a File/Directories</p></div>
<p class="MsoNormal" style="margin:0;"><span style="font-size:small;font-family:Times;">In the above example, I have renamed directory D5 as D10.</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:12pt;font-family:Times;"><strong>rm</strong></span><span style="font-size:12pt;font-family:Times;"> command is to remove files and directories. Usually this 1<sup>st</sup> example is called as &#8216;interactive Remove&#8217;.</span></p>
<p class="MsoNormal" style="margin:0;"> </p>
<div id="attachment_106" class="wp-caption aligncenter" style="width: 395px"><a href="http://dushan888.files.wordpress.com/2008/11/141.png"><img class="size-full wp-image-106" title="Removing Files" src="http://dushan888.files.wordpress.com/2008/11/141.png?w=385&#038;h=69" alt="Removing Files" width="385" height="69" /></a><p class="wp-caption-text">Removing Files</p></div>
<p class="MsoNormal" style="margin:0;"><span style="font-size:small;"><span style="font-family:Times;">Above, I have entered into D1 directory. Then removed the file named &#8216;file2.odt&#8217;. Here, its important to using <strong>-i</strong> argument because it prompt the user before deleting any files or directories. You can also force to delete write protected files by giving the <strong>-f</strong> argument instead of giving <strong>-i</strong>.<span>    </span></span></span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:small;"><span style="font-family:Times;"><strong>Notice: </strong>Be careful with using <strong>rm</strong> command because it can destroy your important data.<strong><span>    </span></strong></span></span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:small;font-family:Times;">use <strong>-fr</strong> argument with <strong>rm</strong> command to delete/remove directories.</span></p>
<div id="attachment_107" class="wp-caption aligncenter" style="width: 519px"><a href="http://dushan888.files.wordpress.com/2008/11/151.png"><img class="size-full wp-image-107" title="Removing Directories" src="http://dushan888.files.wordpress.com/2008/11/151.png?w=509&#038;h=37" alt="Removing Directories" width="509" height="37" /></a><p class="wp-caption-text">Removing Directories</p></div>
<p class="MsoNormal" style="margin:0;"><span style="font-size:small;font-family:Times;">I have delete &#8216;D4&#8242; by following the above method. </span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:12pt;font-family:Times;">This post is getting longer and longer. So I should stop from here. I ll give you more awesome CLI tips from another post, Remember this Blog is dedicated to GNU/Linux beginners. So stick with dushan888.wordpress.com.</span></p>
<p class="MsoNormal" style="margin:0;"> </p>
<p class="MsoNormal" style="text-align:center;margin:0;"> <span style="font-size:12pt;font-family:Times;">&#8230;&#8230;&#8230;.Later&#8230;&#8230;&#8230;. </span></p>
<p class="MsoNormal" style="margin:0;"> </p>
<p class="MsoNormal" style="margin:0;"> </p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dushan888.wordpress.com/89/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dushan888.wordpress.com/89/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dushan888.wordpress.com/89/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dushan888.wordpress.com/89/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dushan888.wordpress.com/89/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dushan888.wordpress.com/89/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dushan888.wordpress.com/89/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dushan888.wordpress.com/89/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dushan888.wordpress.com/89/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dushan888.wordpress.com/89/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dushan888.wordpress.com&blog=3513735&post=89&subd=dushan888&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://dushan888.wordpress.com/2008/11/13/awesome-to-work-in-cli-not-for-masters-but-for-beginners-%e2%80%93-part-iii/feed/</wfw:commentRss>
		<slash:comments>4</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/11/16.png" medium="image">
			<media:title type="html">Making a New Directory</media:title>
		</media:content>

		<media:content url="http://dushan888.files.wordpress.com/2008/11/24.png" medium="image">
			<media:title type="html">Making More Than One Directory</media:title>
		</media:content>

		<media:content url="http://dushan888.files.wordpress.com/2008/11/33.png" medium="image">
			<media:title type="html">Creating ang Changing Permision</media:title>
		</media:content>

		<media:content url="http://dushan888.files.wordpress.com/2008/11/42.png" medium="image">
			<media:title type="html">Creating Subdirectories</media:title>
		</media:content>

		<media:content url="http://dushan888.files.wordpress.com/2008/11/52.png" medium="image">
			<media:title type="html">touch</media:title>
		</media:content>

		<media:content url="http://dushan888.files.wordpress.com/2008/11/62.png" medium="image">
			<media:title type="html">stat</media:title>
		</media:content>

		<media:content url="http://dushan888.files.wordpress.com/2008/11/73.png" medium="image">
			<media:title type="html">-a argument</media:title>
		</media:content>

		<media:content url="http://dushan888.files.wordpress.com/2008/11/81.png" medium="image">
			<media:title type="html">-m argument</media:title>
		</media:content>

		<media:content url="http://dushan888.files.wordpress.com/2008/11/92.png" medium="image">
			<media:title type="html">Changing Date/Time for User Request</media:title>
		</media:content>

		<media:content url="http://dushan888.files.wordpress.com/2008/11/101.png" medium="image">
			<media:title type="html">cp</media:title>
		</media:content>

		<media:content url="http://dushan888.files.wordpress.com/2008/11/113.png" medium="image">
			<media:title type="html">Coping Only the Content</media:title>
		</media:content>

		<media:content url="http://dushan888.files.wordpress.com/2008/11/122.png" medium="image">
			<media:title type="html">-i with cp</media:title>
		</media:content>

		<media:content url="http://dushan888.files.wordpress.com/2008/11/133.png" medium="image">
			<media:title type="html">Renaming a File/Directories</media:title>
		</media:content>

		<media:content url="http://dushan888.files.wordpress.com/2008/11/141.png" medium="image">
			<media:title type="html">Removing Files</media:title>
		</media:content>

		<media:content url="http://dushan888.files.wordpress.com/2008/11/151.png" medium="image">
			<media:title type="html">Removing Directories</media:title>
		</media:content>
	</item>
		<item>
		<title>Awesome to work in CLI [Not for Masters but for Beginners] – PartII</title>
		<link>http://dushan888.wordpress.com/2008/11/10/awesome-to-work-in-cli-not-for-masters-but-for-beginners-%e2%80%93-partii/</link>
		<comments>http://dushan888.wordpress.com/2008/11/10/awesome-to-work-in-cli-not-for-masters-but-for-beginners-%e2%80%93-partii/#comments</comments>
		<pubDate>Mon, 10 Nov 2008 02:58:24 +0000</pubDate>
		<dc:creator>Dushi</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[Technical]]></category>
		<category><![CDATA[cli]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[dushan888]]></category>
		<category><![CDATA[dushi]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[Linux cli]]></category>

		<guid isPermaLink="false">http://dushan888.wordpress.com/?p=53</guid>
		<description><![CDATA[Hope you enjoyed my last CLI post. I told you its Cool! Today you will able to mount your devices/file systems using the CLI . Yes there are lot of things to learn before this, but I think this will be more helpful for you’r day to day work. Sometimes devises/file systems will not be [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dushan888.wordpress.com&blog=3513735&post=53&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;">Hope you enjoyed my last CLI post. I told you its Cool! Today you will able to mount your devices/file systems using the CLI . Yes there are lot of things to learn before this, but I think this will be more helpful for you’r day to day work. Sometimes devises/file systems will not be mounted automatically (most of the time it happens on newly attached hard drives in NTFS or FAT32 format and when the partition table entries are not in disk order. But there can be more other reasons for this). You may have experienced this already. So in this case<span>  </span>you need the command line to mount them manually.</span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:small;"><span style="font-family:Times;"><span>            </span>Before mounting you should identify the partitions correctly. So fire up your terminal/konsole (I use Yakuake) give this command,</span></span></p>
<p class="MsoNormal" style="margin:0;"><strong><span style="font-size:small;"><span style="font-family:Times;">fdisk –l<span>            </span></span></span></strong></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:small;"><span style="font-family:Times;"><strong><span> </span></strong><span>           </span>When using this command, You should first have to be &#8216;root&#8217; to get information about the internal hard drivers(internal file systems). If not you can only get info about external media/USB devices, if you have plugged any. So type,</span></span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:small;"><span style="font-family:Times;"><strong>su </strong>or <strong>sudo su </strong>and press enter. then give the root password to get root privileges. then give <strong>fdisk -l. </strong>Now you l get what you want. </span></span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:small;font-family:Times;">This is a part of my result (which gives me troubles),</span></p>
<div id="attachment_54" class="wp-caption aligncenter" style="width: 520px"><a href="http://dushan888.files.wordpress.com/2008/11/11.png"><img class="size-full wp-image-54" title="cli-partII" src="http://dushan888.files.wordpress.com/2008/11/11.png?w=510&#038;h=149" alt="fdisk -l" width="510" height="149" /></a><p class="wp-caption-text">fdisk -l</p></div>
<p class="MsoNormal" style="margin:0;"><span style="font-size:small;"><span style="font-family:Times;"><span> </span>I want to mount &#8216;hdd5&#8242;. I give this commands to do this,</span></span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:small;"><span style="font-family:Times;"><strong>mkdir /mnt/hdd5</strong><span>         </span></span></span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:small;"><span style="font-family:Times;"><strong>mount -t ntfs /dev/hdd5 /mnt/hdd5</strong><span>     </span></span></span></p>
<p class="MsoNormal" style="margin:0;"><span style="font-size:small;"><span style="font-family:Times;"><span>            </span>Great! Now I have mount the partition I wanted. &#8216;<strong>mkdir</strong>&#8216; is to make a directory. Here I made a directory named &#8216;hdd5&#8242;, inside the &#8216;mnt&#8217; directory. &#8216;mnt&#8217; directory works as a mount point for a temporarily mounted file system. The 2<sup>nd</sup> command describes the following things, </span></span></p>
<div id="attachment_55" class="wp-caption aligncenter" style="width: 520px"><a href="http://dushan888.files.wordpress.com/2008/11/22.png"><img class="size-full wp-image-55" title="cli-partII" src="http://dushan888.files.wordpress.com/2008/11/22.png?w=510&#038;h=81" alt="mount -t ntfs /dev/hdd5 /mnt/hdd5	" width="510" height="81" /></a><p class="wp-caption-text">mount -t ntfs /dev/hdd5 /mnt/hdd5 </p></div>
<p class="MsoNormal" style="margin:0;"><span style="font-size:small;font-family:Times;">User can remount his/her partitions with assigning permission types. I m going to remount my &#8216;hdd5&#8242; with &#8216;read only&#8217; permission.</span></p>
<div id="attachment_56" class="wp-caption aligncenter" style="width: 474px"><a href="http://dushan888.files.wordpress.com/2008/11/3.png"><img class="size-full wp-image-56" title="cli-partII" src="http://dushan888.files.wordpress.com/2008/11/3.png?w=464&#038;h=70" alt="Remount with Read only " width="464" height="70" /></a><p class="wp-caption-text">Remount with Read only </p></div>
<p class="MsoNormal" style="margin:0;"> </p>
<div class="MsoNormal" style="margin:0;"><span style="font-size:small;font-family:Times;">I cant stop<span>  </span>only reading it, I want to write on it!</span></div>
<p> </p>
<div></div>
<p> </p>
<p> </p>
<p><span style="font-size:small;font-family:Times;"></p>
<div id="attachment_57" class="wp-caption aligncenter" style="width: 458px"><a href="http://dushan888.files.wordpress.com/2008/11/4.png"><img class="size-full wp-image-57" title="cli-partII" src="http://dushan888.files.wordpress.com/2008/11/4.png?w=448&#038;h=19" alt="Mount with Read Write" width="448" height="19" /></a><p class="wp-caption-text">Mount with Read Write</p></div>
<p> </p>
<p class="MsoNormal" style="margin:0;"><span> </span>This is all to teach about Mounting! No big deal huh? Keep learning Linux/CLI with Dushi.</p>
<p class="MsoNormal" style="margin:0;"><strong> </strong></p>
<p class="MsoNormal" style="margin:0;"><strong> </strong></p>
<p class="MsoNormal" style="margin:0;"><span>                                                                </span>&#8230;&#8230;&#8230;&#8230;&#8230;Later&#8230;&#8230;&#8230;..</p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p></span></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dushan888.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dushan888.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dushan888.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dushan888.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dushan888.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dushan888.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dushan888.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dushan888.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dushan888.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dushan888.wordpress.com/53/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dushan888.wordpress.com&blog=3513735&post=53&subd=dushan888&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://dushan888.wordpress.com/2008/11/10/awesome-to-work-in-cli-not-for-masters-but-for-beginners-%e2%80%93-partii/feed/</wfw:commentRss>
		<slash:comments>0</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/11/11.png" medium="image">
			<media:title type="html">cli-partII</media:title>
		</media:content>

		<media:content url="http://dushan888.files.wordpress.com/2008/11/22.png" medium="image">
			<media:title type="html">cli-partII</media:title>
		</media:content>

		<media:content url="http://dushan888.files.wordpress.com/2008/11/3.png" medium="image">
			<media:title type="html">cli-partII</media:title>
		</media:content>

		<media:content url="http://dushan888.files.wordpress.com/2008/11/4.png" medium="image">
			<media:title type="html">cli-partII</media:title>
		</media:content>
	</item>
		<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>