<?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>NomadicRider &#187; OpenGuide</title>
	<atom:link href="http://nomadicrider.com/category/open-guides/feed/" rel="self" type="application/rss+xml" />
	<link>http://nomadicrider.com</link>
	<description>Travel Technology Life</description>
	<lastBuildDate>Sat, 15 May 2010 19:50:58 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Unix 101: File Attributes</title>
		<link>http://nomadicrider.com/2008/09/unix-101-file-attributes/</link>
		<comments>http://nomadicrider.com/2008/09/unix-101-file-attributes/#comments</comments>
		<pubDate>Mon, 29 Sep 2008 18:58:55 +0000</pubDate>
		<dc:creator>Sharninder</dc:creator>
				<category><![CDATA[OpenGuide]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://nomadicrider.com/?p=229</guid>
		<description><![CDATA[So, we now know our way around the Unix filesystem now and we know how to read, move or delete files. We also know how to ask for help if we&#8217;re stuck. This post in the Unix 101 series will teach you about file permissions.
We&#8217;ve been talking about Unix being a multi-user, multiprocessing system, but we haven&#8217;t really though of security yet, have we ? I mean, if there are several users using a system at the same time, your personal data can&#8217;t be safe, right ?
Wrong !
The designers of ...]]></description>
			<content:encoded><![CDATA[<p><a href="http://nomadicrider.com/wp-content/uploads/2008/09/unix.jpg"><img class="alignleft size-medium wp-image-199" style="margin: 5px;" title="unix" src="http://nomadicrider.com/wp-content/uploads/2008/09/unix.jpg" alt="" width="263" height="152" /></a>So, we now <a title="unix" href="http://nomadicrider.com/2008/07/unix-101-listing-and-reading-files-and-moving-between-directories/" target="_blank">know our way around</a> the Unix filesystem now and we know <a title="unix" href="http://nomadicrider.com/2008/07/unix-101-listing-and-reading-files-and-moving-between-directories/" target="_blank">how to read, move or delete files</a>. We also know <a title="unix man pages" href="http://nomadicrider.com/2008/07/unix-101-help-aka-man-pages/" target="_blank">how to ask for help</a> if we&#8217;re stuck. This post in the Unix 101 series will teach you about file permissions.</p>
<p>We&#8217;ve been talking about Unix being a multi-user, multiprocessing system, but we haven&#8217;t really though of security yet, have we ? I mean, if there are several users using a system at the same time, your personal data can&#8217;t be safe, right ?</p>
<p>Wrong !</p>
<p>The designers of Unix also faced this problem &#8230; and fortunately they were smart enough to devise a solution for this.</p>
<p>We learned earlier ( did we ? ), that everything in Unix is a file. Well, it is, and every file has certain attributes associated with it. These attributes define the permissions that the file has, or rather, the permissions that a particular user has to access that file. All this getting too complicated ? An example would be perfect here:</p>
<p> </p>
<blockquote><p><em>$ ls -l</em></p>
<p><em>total 4</em></p>
<p><em>drwx&#8211;x&#8211;x  13 sharninder sharninder 4096 Sep 29 02:53 ./</em></p>
<p><em>drwxr-xr-x   3    root           root           4096 Mar  6  2008 ../</em></p>
<p><em>drwxr-x&#8212;   3   sharninder mail           4096 Mar  7  2008 etc/<br />
</em></p>
<p><em>-rwxrw-r&#8211;  10 sharninder sharninder 4096 Apr  4 01:52 test.sh</em></p></blockquote>
<p>This is the listing you get when you look at a directory with the long listing option ( -l ) to <em>ls</em>. This listing can be broken down into 7 sections. Each line describes one line and from left to right, the various columns give the: the permissions, the number of links, the owner, the group owner, the size in bytes, the date and time of the last modification, and the file&#8217;s name. </p>
<p>The first character of the permission column tells us what kind of file this is. <em>&#8216;d&#8217; </em>stands for directory, hyphen (-) for regular file. The next three triplets of three characters each tell us, in order, the permissions on the file that apply to the file&#8217;s owner, the file&#8217;s group and the public.</p>
<p>So, for example, the file test.sh is a regular file <em>(-), </em>the owner has the permissions, rwx, the group has the permission, rw, and the public has only the &#8216;r&#8217; permission. &#8216;r&#8217; stands for read-only, &#8216;w&#8217; stands for writing (which implies reading) and &#8216;x&#8217; stands for executable. For directories, &#8216;x&#8217; means that the directory can be browsed through.</p>
<p>Before, we learn how to set permissions, we should know what the third and fourth columns stand for. The third column of the file listing is name of the owner of the file and the fourth column lists the group the file owner belongs to.</p>
<p>Now, we&#8217;ll learn how to set permissions ourselves.</p>
<p>To set or change the permissions on a file, we use the <em>chmod</em> command. For example:</p>
<blockquote><p><em>$ chmod a+rw test.sh</em></p></blockquote>
<p>The above command will set the read-write (+rw) permission for the public (a &#8211; all) on the file test.sh. Similarly:</p>
<blockquote><p><em>$ chmod a-rw test.sh </em></p></blockquote>
<p>will remove the read-write (-rw) permission for the public (a -all) from the test.sh file.</p>
<blockquote><p><em>$ chmod u+x test.sh</em> </p></blockquote>
<p>This will set the executable permissions on the test.sh file for the user who owns the file (u &#8211; user).</p>
<blockquote><p><em>$ chmod g-rw test.sh</em></p></blockquote>
<p>Will take away the read-write permissions from the test.sh file for the user who belong to the group (g -group) of the file&#8217;s owner.</p>
<p>With the <em>chmod </em>command we can only deal with the permissions imposed on the owner/group of the file. What if we need to the owner/group itself. That is taken care of by the <em>chown</em> command.</p>
<blockquote><p><em>$ chmod sharninder.root test.sh</em></p></blockquote>
<p>The above command will set the user of the test.sh file as sharninder and the group as root. Basically, the format to use is <em>&lt;user&gt;.&lt;group&gt;</em></p>
<p>Thats all for today. With those two commands in hand, you should be able to handle almost all Unix permissions. Read the man pages for both the commands and you should be good to go.</p>
<h3  class="related_post_title">If you found this post interesting, you may also want to read ...</h3><ul class="related_post"><li><a href="http://nomadicrider.com/2008/09/unix-101-manipulating-files-copying-moving-deleting/" title="Unix 101: Manipulating files &#8211; Copying, moving, deleting">Unix 101: Manipulating files &#8211; Copying, moving, deleting</a></li><li><a href="http://nomadicrider.com/2008/07/unix-101-unix-processes/" title="Unix 101: Unix processes">Unix 101: Unix processes</a></li><li><a href="http://nomadicrider.com/2008/07/unix-101-help-aka-man-pages/" title="Unix 101 &#8211; Help aka &#8216;man&#8217; pages">Unix 101 &#8211; Help aka &#8216;man&#8217; pages</a></li><li><a href="http://nomadicrider.com/2008/07/unix-101-listing-and-reading-files-and-moving-between-directories/" title="Unix 101: Listing and reading files and moving between directories">Unix 101: Listing and reading files and moving between directories</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://nomadicrider.com/2008/09/unix-101-file-attributes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Unix 101: Manipulating files &#8211; Copying, moving, deleting</title>
		<link>http://nomadicrider.com/2008/09/unix-101-manipulating-files-copying-moving-deleting/</link>
		<comments>http://nomadicrider.com/2008/09/unix-101-manipulating-files-copying-moving-deleting/#comments</comments>
		<pubDate>Sun, 07 Sep 2008 10:06:57 +0000</pubDate>
		<dc:creator>Sharninder</dc:creator>
				<category><![CDATA[OpenGuide]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://nomadicrider.com/?p=81</guid>
		<description><![CDATA[
This post is the next in a series of posts we&#8217;re doing on Unix. The aim of the series is to get our readers familiar with the basics of working on a Unix or a Linux system.
Uptil now we&#8217;ve learned a bit about how the Unix system works and how to navigate around the filesystem. We can now login to a unix system and start viewing the files and moving around between different directories. We also know a little about processes on a Unix system.
What next ?
This post will teach ...]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><a href="http://nomadicrider.com/wp-content/uploads/2008/09/unix.jpg"><img class="size-full wp-image-199 aligncenter" title="unix" src="http://nomadicrider.com/wp-content/uploads/2008/09/unix.jpg" alt="" width="263" height="152" /></a></p>
<p>This post is the next in a series of posts we&#8217;re doing on Unix. The aim of the series is to get our readers familiar with the basics of working on a Unix or a Linux system.</p>
<p>Uptil now we&#8217;ve learned a bit about how the Unix system works and how to navigate around the filesystem. We can now <a title="unix 101" href="http://nomadicrider.com/2008/07/unix-101-basic-unix-skills/" target="_blank">login</a> to a unix system and start <a title="unix 101" href="http://nomadicrider.com/2008/07/unix-101-listing-and-reading-files-and-moving-between-directories/" target="_blank">viewing the files and moving around between different directories</a>. We also know a <a title="unix 101" href="http://nomadicrider.com/2008/07/unix-101-unix-processes/" target="_blank">little about processes</a> on a Unix system.</p>
<p>What next ?</p>
<p>This post will teach you about different file manipulation operations. By file manipulation, I mean, commands to copy, move or delete files. Since, on a Unix/Linux system everything is a file, the commands that we learn about today can also be used to work with directories, with some changes.</p>
<p>Unix commands have a reputation for being terse and short, which goes back to the old days when all input to a system was through some complex circuit manipulations or the computer had to be fed punch cards to recognize input. It made sense to use short commands for the purpose back then and modern Unixes/Linuxes have just carried on the tradition.</p>
<p>Take for example, the command to copy a file, <em>cp</em>, the syntax for which is:</p>
<p><em># cp &lt;sourcefile&gt; &lt;destinationfile&gt;</em></p>
<p>For eg:</p>
<p><em># cp test1 test2</em></p>
<p>The above command will just make a copy named test2 of the file named test1. Simple, isn&#8217;t it ?</p>
<p>Continuing the tradition of terse commands is the command to move files, <em>mv.</em></p>
<p><em># mv &lt;sourcefile&gt; &lt;destinationfile&gt;</em></p>
<p>For eg:</p>
<p><em># mv test1 testdirectory/test2</em></p>
<p>The above command will copy the file named <em>test1</em> to the directory named <em>testdirectory</em> and will change the name of the file to <em>test2</em>. If you don&#8217;t give the name of the destination file (<em>test2</em> in the example), the file will be moved with the same name as the source.</p>
<p>The last command that we&#8217;ll be talking about today is the remove command, or <em>rm</em>. rm is the command to use when you want to remove a file from the system.</p>
<p><em># rm &lt;filename&gt;</em></p>
<p>For example,</p>
<p><em># rm test1</em></p>
<p>The above command will delete the file named test1. Use the command with care, though, since unlike Windows there is no concept of a recycle bin in Unix/Linux and any file that you delete using rm will be gone forever and you cannot change your mind later.</p>
<p>The above commands also work on directories, since a directory is also a file in Unix, a special file.</p>
<p>That was a basic overview of the cp, mv and rm commands. As always, I&#8217;d urge you to RTFM (read the fine manual &#8211; man pages in this case) and try out these commands for yourself. The only way to understand Unix is to use it.</p>
<p>I really hope this series of posts is benefitting atleast someone out there. I would love to hear some feedback from you guys on how I can improve my next posts and also what would you like me to cover.</p>
<h3  class="related_post_title">If you found this post interesting, you may also want to read ...</h3><ul class="related_post"><li><a href="http://nomadicrider.com/2008/07/unix-101-unix-processes/" title="Unix 101: Unix processes">Unix 101: Unix processes</a></li><li><a href="http://nomadicrider.com/2008/07/unix-101-help-aka-man-pages/" title="Unix 101 &#8211; Help aka &#8216;man&#8217; pages">Unix 101 &#8211; Help aka &#8216;man&#8217; pages</a></li><li><a href="http://nomadicrider.com/2008/07/unix-101-listing-and-reading-files-and-moving-between-directories/" title="Unix 101: Listing and reading files and moving between directories">Unix 101: Listing and reading files and moving between directories</a></li><li><a href="http://nomadicrider.com/2008/07/unix-101-basic-unix-skills/" title="Unix 101 &#8211; Basic Unix skills">Unix 101 &#8211; Basic Unix skills</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://nomadicrider.com/2008/09/unix-101-manipulating-files-copying-moving-deleting/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FUSE: Filesystem in Userspace</title>
		<link>http://nomadicrider.com/2008/08/fuse-filesystem-userspace/</link>
		<comments>http://nomadicrider.com/2008/08/fuse-filesystem-userspace/#comments</comments>
		<pubDate>Wed, 06 Aug 2008 06:58:06 +0000</pubDate>
		<dc:creator>Sharninder</dc:creator>
				<category><![CDATA[OpenGuide]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[OpenSource]]></category>

		<guid isPermaLink="false">http://nomadicrider.com/?p=118</guid>
		<description><![CDATA[According to wikipedia, a filesystem is:
is a method for storing and organizing computer files and the data they contain to make it easy to find and access them.
It is the filesystem which provides us the abstraction of folders, directories and sub-directories that we use to store files on a computer. Infact, it is the filesystem only which lets us store and retrieve any data that we store in a computer.
Filesystems are usually a part of the kernel, the heart of the operating system and the code runs in a privileged ...]]></description>
			<content:encoded><![CDATA[<p>According to wikipedia, a <a href="http://en.wikipedia.org/wiki/File_system">filesystem</a> is:</p>
<blockquote><p>is a method for storing and organizing computer files and the data they contain to make it easy to find and access them.</p></blockquote>
<p>It is the filesystem which provides us the abstraction of folders, directories and sub-directories that we use to store files on a computer. Infact, it is the filesystem only which lets us store and retrieve any data that we store in a computer.</p>
<p>Filesystems are usually a part of the kernel, the heart of the operating system and the code runs in a privileged mode known as kernel mode which means that only the operating system has access to that code. That is also the reason why developing a real filesystem is usually the domain of highly talented kernel developers.</p>
<p><a href="http://fuse.sourceforge.net">FUSE</a> changes all that. FUSE, which stands for &#8220;Filesystem in USErspace&#8221;, provides an API (application programming interface) for anyone to create their own filesystem, which runs like a normal user program. If all this is confusing you, don&#8217;t worry, cause you don&#8217;t really have to worry about these details.</p>
<p>How is FUSE useful for you ?</p>
<p><span id="more-118"></span></p>
<p>Like I said, FUSE provides an interface for anyone to create a filesystem without resorting to nifty trickery in the kernel world. This has led to a proliferation of a large number of rather useful filesystem hacks. Filesystems which let you view compressed archives, let you make backups or encrypt your files.</p>
<p>Let&#8217;s look at how to setup FUSE on an Ubuntu 8.04 based system and use that to mount an encrypted filesystem using <a href="http://fuse.sourceforge.net/sshfs.html">sshfs</a>. FUSE is a part of the Ubuntu &#8216;Hardy Heron&#8217; kernel and the module should be loaded when the system boots up. Check for it using the lsmod command:</p>
<p><em>sharninder@blr-skhera:~$ lsmod|grep fuse<br />
fuse                   50708  3</em></p>
<p>Now, you should install the FUSE utilities package and the library package.</p>
<p><em>$ sudo apt-get install fuse-utils libfuse2</em></p>
<p>Now, you can go ahead and install sshfs using the following command:</p>
<p><em>sharninder@blr-skhera:~$ sudo apt-get install sshfs</em></p>
<p>You should now have a working installation of sshfs and you&#8217;re ready to mount a remote filesystem over an encrypted channel. Mounting an sshfs partition is as simple as:</p>
<p><em>sharninder@blr-skhera:~$ sshfs testuser@testserver:/home/testuser MP<br />
testuser@testserver&#8217;s password:<br />
sharninder@blr-skhera:~$ cd MP<br />
sharninder@blr-skhera:~/MP$ ls<br />
etc  mail  public_html  tmp<br />
sharninder@blr-skhera:~/MP$</em></p>
<p>The above command will mount the &#8216;/home/testuser&#8217; directory from the testserver to the &#8216;MP&#8217; mount point on the local system. The entire communication between the client and the server will be encrypted and the user testuser will be used to communicate with the server. This can be a handy way to access frequently used servers and all regular Unix commands like cp, rm, mv will work on the mount point as if it is a local directory.</p>
<p>To unmount the filesystem, use the following command:</p>
<p><em>$ fusermount -u MP</em></p>
<p>Where MP is the mount point.</p>
<p>Now, that you have used the sshfs module you&#8217;re all set to explore the countless other modules that have been developed for FUSE. Try playing with <a href="http://manishrjain.googlepages.com/flickrfs">flickrfs</a>, <a href="http://fuse.sourceforge.net/wiki/index.php/FuseIso">fuseiso</a>, <a href="http://freshmeat.net/projects/fusedav/">fusedav</a> or <a href="http://www.ricardis.tudelft.nl/~vincent/fusesmb/">fusesmb</a> and let us know how it goes.</p>
<h3  class="related_post_title">If you found this post interesting, you may also want to read ...</h3><ul class="related_post"><li><a href="http://nomadicrider.com/2008/09/canonical-offers-sale-of-proprietary-codecs-for-ubuntu/" title="Canonical Offers Sale of Proprietary Codecs for Ubuntu">Canonical Offers Sale of Proprietary Codecs for Ubuntu</a></li><li><a href="http://nomadicrider.com/2008/10/will-open-source-survive-the-economic-crisis/" title="Will Open Source survive the economic crisis">Will Open Source survive the economic crisis</a></li><li><a href="http://nomadicrider.com/2008/09/t-mobile-g1-worlds-first-android-based-phone-launched/" title="T-Mobile G1 &#8211; World&#8217;s first Android based Phone Launched">T-Mobile G1 &#8211; World&#8217;s first Android based Phone Launched</a></li><li><a href="http://nomadicrider.com/2008/09/unix-101-manipulating-files-copying-moving-deleting/" title="Unix 101: Manipulating files &#8211; Copying, moving, deleting">Unix 101: Manipulating files &#8211; Copying, moving, deleting</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://nomadicrider.com/2008/08/fuse-filesystem-userspace/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Unix 101: Unix processes</title>
		<link>http://nomadicrider.com/2008/07/unix-101-unix-processes/</link>
		<comments>http://nomadicrider.com/2008/07/unix-101-unix-processes/#comments</comments>
		<pubDate>Thu, 24 Jul 2008 16:01:42 +0000</pubDate>
		<dc:creator>Sharninder</dc:creator>
				<category><![CDATA[OpenGuide]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://nomadicrider.com/?p=100</guid>
		<description><![CDATA[I&#8217;m sure you&#8217;ve heard people tell you that Unix (and Linux) is a multiuser/multitasking operating system. But, what does that mean ?
Well, for one, you can create multiple users on linux and let all of them use the machine at the same time, by letting them login remotely (We&#8217;ll cover this later). And thus, Linux is a multiuser operating system.
Multitasking is a little more complicated.
You see, a Unix system at any time is always running more than one programs simultaneously. Ah, but I am only running my browser, you ask ...]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m sure you&#8217;ve heard people tell you that Unix (and Linux) is a multiuser/multitasking operating system. But, what does that mean ?</p>
<p>Well, for one, you can create multiple users on linux and let all of them use the machine at the same time, by letting them login remotely (We&#8217;ll cover this later). And thus, Linux is a multiuser operating system.</p>
<p>Multitasking is a little more complicated.</p>
<p>You see, a Unix system at any time is always running more than one programs simultaneously. Ah, but I am only running my browser, you ask ? Well, yes and no. The browser is the only program that <strong>you</strong> are running but there is more to the operating system, than just the browser, right ? For example, the graphical interface that you&#8217;re running. And what if there are more people working on the same system (the multiuser part of it), then all of them would be running their own programs, right ? So, to cut things short, any Linux or Unix system at any time is always running multiple programs/tasks and thus, is a multitasking system. How does it do that ?</p>
<p><span id="more-100"></span></p>
<p>To make your browser run and take input from you or display images, a <strong>lot</strong> is going on in the background which you don&#8217;t see. Multitasking is one of those things. The operating system partitions the memory so that no other user can see the email that you&#8217;re working on, it makes sure that the email client has the resources it needs to send the email when it wants and various other sundry tasks. If you&#8217;re confused, I understand. These are more complicated operating system task should probably be reserved to the Unix 201 or 301 course :-)</p>
<p>Today we&#8217;re just going to play around a bit with processes on a Linux box.</p>
<p>To list all the processes running on your machine, use the following command:</p>
<pre>$ ps</pre>
<p>The output will be something like this:</p>
<pre>  PID TTY          TIME CMD
 8551 pts/0    00:00:00 bash
 8600 pts/0    00:00:00 ps</pre>
<p>That&#8217;s some terse output, isn&#8217;t it ? Well, what it tells you is that there are two process running on your system and those are bash and ps (ps is the command you ran to get this list, so while it was getting the list, it was one of the processes running and so it included itself in the list). The other thing that the output tell you is the process ID (PID) of the processes. This is an identifier that the system uses to identify processes internally. The PID for bash is 8551 and the PID for ps is 8600. The next time you run this command, the ps command will have a different PID because once the ps command has executed, the operating system clears all resources used by it and that includes the PID. When the command runs again, it gets all shiny, brand new resources.</p>
<p>Now, if you&#8217;ve noticed, the above ps output only shows you the commands that you are running. If you want to see all the processes that are running on the system at any time. Use the ps command with the following options:</p>
<pre>$ ps -ef</pre>
<p>That, I&#8217;m sure, is a lot more info that most of you are ready to digest, right ? If, the answer is No, then you shouldn&#8217;t be reading this :-)</p>
<p>Jokes apart, the basic info given in the output is the same but there are some other fields which might be interesting. You can read the man page for the ps command to read about all the fields or the various other options that the command supports. There are dozens and its not practical for me to cover all of them here.</p>
<p>We&#8217;ll be covering the ps command in more detail in a later post and learn to do more cool things with it.</p>
<p>Subscribe to this blog using your RSS reader or by Email.</p>
<h3  class="related_post_title">If you found this post interesting, you may also want to read ...</h3><ul class="related_post"><li><a href="http://nomadicrider.com/2008/09/unix-101-manipulating-files-copying-moving-deleting/" title="Unix 101: Manipulating files &#8211; Copying, moving, deleting">Unix 101: Manipulating files &#8211; Copying, moving, deleting</a></li><li><a href="http://nomadicrider.com/2008/07/unix-101-help-aka-man-pages/" title="Unix 101 &#8211; Help aka &#8216;man&#8217; pages">Unix 101 &#8211; Help aka &#8216;man&#8217; pages</a></li><li><a href="http://nomadicrider.com/2008/07/unix-101-listing-and-reading-files-and-moving-between-directories/" title="Unix 101: Listing and reading files and moving between directories">Unix 101: Listing and reading files and moving between directories</a></li><li><a href="http://nomadicrider.com/2008/07/unix-101-basic-unix-skills/" title="Unix 101 &#8211; Basic Unix skills">Unix 101 &#8211; Basic Unix skills</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://nomadicrider.com/2008/07/unix-101-unix-processes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Unix 101 &#8211; Help aka &#8216;man&#8217; pages</title>
		<link>http://nomadicrider.com/2008/07/unix-101-help-aka-man-pages/</link>
		<comments>http://nomadicrider.com/2008/07/unix-101-help-aka-man-pages/#comments</comments>
		<pubDate>Fri, 18 Jul 2008 06:26:22 +0000</pubDate>
		<dc:creator>Sharninder</dc:creator>
				<category><![CDATA[OpenGuide]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://nomadicrider.com/?p=79</guid>
		<description><![CDATA[&#8220;UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity.&#8221;
- Dennis Ritchie
Dennis Ritchie is one of the creators of Unix and the above quote summarizes the philosophy behind Unix. The Unix command line is terse by design and it can take a new user a long time to understand (and remember) the nuances of a particular command line.
Fret not, cause man is at hand.
man is the unix/linux command line utility designed to display documentation about a given command. For example, suppose you&#8217;ve ...]]></description>
			<content:encoded><![CDATA[<blockquote><p>&#8220;<span class="body">UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity.&#8221;</span></p>
<p>- Dennis Ritchie</p></blockquote>
<p>Dennis Ritchie is one of the creators of Unix and the above quote summarizes the philosophy behind Unix. The Unix command line is terse by design and it can take a new user a long time to understand (and remember) the nuances of a particular command line.</p>
<p>Fret not, cause man is at hand.</p>
<p>man is the unix/linux command line utility designed to display documentation about a given command. For example, suppose you&#8217;ve forgotten the <a href="http://nomadicrider.com/2008/07/unix-101-listing-and-reading-files-and-moving-between-directories/" target="_blank">option used to display the long list</a> of files in a directory, you can use the following command to view the help manual for the &#8216;ls&#8217; command:</p>
<pre>$ man ls</pre>
<p>That&#8217;s it.</p>
<p>This will display a page with a description of the &#8216;ls&#8217; command and all the options that it supports. If you&#8217;re lucky, the man page writer would have also included some examples describing the usage of the command.</p>
<p>Now, try viewing the man page for all the <a href="http://nomadicrider.com/2008/07/unix-101-basic-unix-skills/" target="_blank">other</a> <a href="http://nomadicrider.com/2008/07/unix-101-listing-and-reading-files-and-moving-between-directories/" target="_blank">commands</a> that we&#8217;ve discussed till now.</p>
<h3  class="related_post_title">If you found this post interesting, you may also want to read ...</h3><ul class="related_post"><li><a href="http://nomadicrider.com/2008/09/unix-101-manipulating-files-copying-moving-deleting/" title="Unix 101: Manipulating files &#8211; Copying, moving, deleting">Unix 101: Manipulating files &#8211; Copying, moving, deleting</a></li><li><a href="http://nomadicrider.com/2008/07/unix-101-unix-processes/" title="Unix 101: Unix processes">Unix 101: Unix processes</a></li><li><a href="http://nomadicrider.com/2008/07/unix-101-listing-and-reading-files-and-moving-between-directories/" title="Unix 101: Listing and reading files and moving between directories">Unix 101: Listing and reading files and moving between directories</a></li><li><a href="http://nomadicrider.com/2008/07/unix-101-basic-unix-skills/" title="Unix 101 &#8211; Basic Unix skills">Unix 101 &#8211; Basic Unix skills</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://nomadicrider.com/2008/07/unix-101-help-aka-man-pages/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Unix 101: Listing and reading files and moving between directories</title>
		<link>http://nomadicrider.com/2008/07/unix-101-listing-and-reading-files-and-moving-between-directories/</link>
		<comments>http://nomadicrider.com/2008/07/unix-101-listing-and-reading-files-and-moving-between-directories/#comments</comments>
		<pubDate>Thu, 17 Jul 2008 12:12:08 +0000</pubDate>
		<dc:creator>Sharninder</dc:creator>
				<category><![CDATA[OpenGuide]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://nomadicrider.com/?p=78</guid>
		<description><![CDATA[In the last post of this series, we learned about logging in to a Linux box, creating a new non superuser account and start using that.
In this post we&#8217;ll learn how to start working with files. Creating, deleting and managing files is the reason you use a computer, right ?
Unix has a concept of directories, which is the same as a folder on Windows.
To list all the files in the current directory, use the following command:
$ ls
This will give you a list of directories in what is called the wide ...]]></description>
			<content:encoded><![CDATA[<p>In the <a href="http://nomadicrider.com/2008/07/unix-101-basic-unix-skills/" target="_blank">last post</a> of this series, we learned about logging in to a Linux box, creating a new non superuser account and start using that.</p>
<p>In this post we&#8217;ll learn how to start working with files. Creating, deleting and managing files is the reason you use a computer, right ?</p>
<p>Unix has a concept of directories, which is the same as a folder on Windows.</p>
<p>To list all the files in the current directory, use the following command:</p>
<pre>$ ls</pre>
<p>This will give you a list of directories in what is called the wide format.</p>
<p><span id="more-78"></span></p>
<p>If you want to see the listing of files in the long format, which is somewhat like the &#8220;dir&#8221; command output of windows, use the following command:</p>
<pre>$ ls -l</pre>
<p>Now, to view the contents of a particular file, use the &#8220;cat&#8221; command:</p>
<pre>$ cat &lt;filename&gt;</pre>
<p>Now, to change into a different directory than the current one, use the following command:</p>
<pre>$ cd ./&lt;directory name&gt;</pre>
<p>Notice the &#8220;./&#8221; in front of the name. Well, lets just say you&#8217;ll learn about this a while later and keep it as it is for now.</p>
<p>To see the directory that you are in currently, use the following command:</p>
<pre>$ pwd</pre>
<p>the pwd command will give you what is called the full path of the current working directory. Remember the folder based hierarchy that Windows has, where all folders begin with a folder in the c: or d: or x: ? Well, Unix/Linux all folders (directories) begin from what is called the root, which is denoted by a single slash (/).</p>
<p>When you give the pwd command the output would be something like:</p>
<pre>/home/testuser/testfolder</pre>
<p>This means that the home directory is under the root (/) and under the home directory there is a directory named testuser, and under that directory is a directory named testfolder, which is where the user is currently working.</p>
<p>By the way, when you used the &#8216;ls&#8217; command to list the contents of the directory, did you notice the first two entries in the list ? The first two entries are special. Those are the . (dot) and .. (double dot). The dot stands for the current directory and the double dot stands for the directory which is one above the current directory in the hierarchy.</p>
<p>So, for example, if you are in the testfolder as shown by the pwd command, and type the following:</p>
<pre>$ cd ..</pre>
<p>That will take you to the &#8220;testuser&#8221; directory, since testuser is one level above the testfolder directory. If, on the other hand, you just do a &#8220;cd .&#8221; (single dot), you will still be in the same directory.</p>
<p>That should be enough to get you all started &#8230; till my next post.</p>
<h3  class="related_post_title">If you found this post interesting, you may also want to read ...</h3><ul class="related_post"><li><a href="http://nomadicrider.com/2008/09/unix-101-manipulating-files-copying-moving-deleting/" title="Unix 101: Manipulating files &#8211; Copying, moving, deleting">Unix 101: Manipulating files &#8211; Copying, moving, deleting</a></li><li><a href="http://nomadicrider.com/2008/07/unix-101-unix-processes/" title="Unix 101: Unix processes">Unix 101: Unix processes</a></li><li><a href="http://nomadicrider.com/2008/07/unix-101-help-aka-man-pages/" title="Unix 101 &#8211; Help aka &#8216;man&#8217; pages">Unix 101 &#8211; Help aka &#8216;man&#8217; pages</a></li><li><a href="http://nomadicrider.com/2008/07/unix-101-basic-unix-skills/" title="Unix 101 &#8211; Basic Unix skills">Unix 101 &#8211; Basic Unix skills</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://nomadicrider.com/2008/07/unix-101-listing-and-reading-files-and-moving-between-directories/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Unix 101 &#8211; Basic Unix skills</title>
		<link>http://nomadicrider.com/2008/07/unix-101-basic-unix-skills/</link>
		<comments>http://nomadicrider.com/2008/07/unix-101-basic-unix-skills/#comments</comments>
		<pubDate>Tue, 15 Jul 2008 14:58:28 +0000</pubDate>
		<dc:creator>Sharninder</dc:creator>
				<category><![CDATA[OpenGuide]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[scripting]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://nomadicrider.com/?p=77</guid>
		<description><![CDATA[I have a confession to make. I&#8217;m a Unix guy, have always been and will always be. I&#8217;ve been using Unix for the last 10 years or so and will continue using it for as long as I can. There is something about the simplicity of the unix command line that none of the flashier operating systems can match.
I&#8217;ve also been interviewing people with basic Unix skills for various positions over the last couple of years. For some reason, I&#8217;ve found that Indian college curriculum doesn&#8217;t put too much emphasis ...]]></description>
			<content:encoded><![CDATA[<p>I have a confession to make. I&#8217;m a Unix guy, have always been and will always be. I&#8217;ve been using Unix for the last 10 years or so and will continue using it for as long as I can. There is something about the simplicity of the unix command line that none of the flashier operating systems can match.</p>
<p>I&#8217;ve also been interviewing people with basic Unix skills for various positions over the last couple of years. For some reason, I&#8217;ve found that Indian college curriculum doesn&#8217;t put too much emphasis on Unix and so, most people who come out of these colleges don&#8217;t know much beyond the flashy GUIs that most Unix/Linux distros have. Infact, a lot of people who come for interviews tend to thing that Redhat/Fedora IS Linux. And when asked, tell me that the only Linux they have experience on is Linux version 9 !</p>
<p>Anyway, I&#8217;ve decided to start series on basic Unix skills on this blog in the hope that this&#8217;ll be a useful reference for someone starting to learn Unix/Linux. I&#8217;ll be mostly concentrating on Linux as that is what I&#8217;m most comfortable with and currently work with, but if I do get requests for similar posts on other Unix systems, I&#8217;ll be happy to oblige.</p>
<p><span id="more-77"></span></p>
<p>Since, this is the first post in this series, I&#8217;ll keep things simple.</p>
<p>The &#8220;#&#8221; or &#8220;$&#8221; is the prompt that I will be using to depict the command line and anything after that is the actual command that you should be running.</p>
<p>The superuser or the Administrator on a Linux system is called &#8220;root&#8221;. When you first install a Linux distribution, you would have been asked to fill in a password during the install. This would be the password of the root user. Use this to login to your box for the first time.</p>
<p>It is usually not a good idea to continue using the system as the root user. As the superuser, you can give a nasty command to delete all files on the system and the operating system will not even let out a muffled cry.</p>
<p>If the idea is to learn linux, it is always a good idea to first create a new user and use that login to practice. The following command will let you add a new non privileged user to the system:</p>
<pre># adduser &lt;username&gt;</pre>
<p>The user that you&#8217;ve just added needs a password to be able to login. Give a password to this user like this:</p>
<pre># passwd</pre>
<pre>Enter new Unix password:</pre>
<pre>Retype new Unix password:</pre>
<p>Now, logout of the current session using:</p>
<pre># logout</pre>
<p>Now, you&#8217;re all set to login as the new user you just created and start learning the nuances of this wonderful operating system.</p>
<p><em>PS: Some distributions like Ubuntu will let you do the above steps in just one command. So, if you&#8217;re using Ubuntu, just give the adduser command and it will create the user as well as ask you for the password. You don&#8217;t need to give the passwd command seperately.</em></p>
<p>Hopefully, you&#8217;ve found this post useful. I&#8217;ll continue with this series over the next couple of days. Let me know if you guys want me to write on something specific instead.</p>
<h3  class="related_post_title">If you found this post interesting, you may also want to read ...</h3><ul class="related_post"><li><a href="http://nomadicrider.com/2008/09/unix-101-manipulating-files-copying-moving-deleting/" title="Unix 101: Manipulating files &#8211; Copying, moving, deleting">Unix 101: Manipulating files &#8211; Copying, moving, deleting</a></li><li><a href="http://nomadicrider.com/2008/07/unix-101-unix-processes/" title="Unix 101: Unix processes">Unix 101: Unix processes</a></li><li><a href="http://nomadicrider.com/2008/07/unix-101-help-aka-man-pages/" title="Unix 101 &#8211; Help aka &#8216;man&#8217; pages">Unix 101 &#8211; Help aka &#8216;man&#8217; pages</a></li><li><a href="http://nomadicrider.com/2008/07/unix-101-listing-and-reading-files-and-moving-between-directories/" title="Unix 101: Listing and reading files and moving between directories">Unix 101: Listing and reading files and moving between directories</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://nomadicrider.com/2008/07/unix-101-basic-unix-skills/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
