<?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>Dustin&#039;s Blog &#187; Linux Series</title>
	<atom:link href="http://blog.dustinrue.com/archives/category/linux-series/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.dustinrue.com</link>
	<description>Mac, LInux and things in between</description>
	<lastBuildDate>Sat, 04 Sep 2010 03:02:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Accessing the Linux command line</title>
		<link>http://blog.dustinrue.com/archives/59</link>
		<comments>http://blog.dustinrue.com/archives/59#comments</comments>
		<pubDate>Sun, 16 Sep 2007 18:14:50 +0000</pubDate>
		<dc:creator>Dustin</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[Linux Series]]></category>
		<category><![CDATA[Things I Like]]></category>

		<guid isPermaLink="false">http://blog.dustinrue.com/2007/09/16/accessing-the-linux-command-line/</guid>
		<description><![CDATA[Accessing the Linux command line is quite simple. I&#8217;ll describe the process as it is on a Ubuntu system but only because Ubuntu has the most market share of the Linux distros today. The concepts here carry over all most if not all other Linux distributions. One other thing I should point out is that [...]]]></description>
			<content:encoded><![CDATA[<p>Accessing the Linux command line is quite simple.  I&#8217;ll describe the process as it is on a Ubuntu system but only because Ubuntu has the most market share of the Linux distros today.  The concepts here carry over all most if not all other Linux distributions.  One other thing I should point out is that the command line is sometimes referred to as the &#8220;console&#8221; or &#8220;terminal&#8221; and I may use those terms from time to time.  </p>
<p>There are times that you&#8217;ll need to use the command line in order to get something done because there won&#8217;t be an appropriate GUI tool available or a GUI tool that is available doesn&#8217;t have a needed option.  In these cases you can access the command line to get the job done.<br />
<span id="more-59"></span></p>
<p>In general, there are basically three ways to access the command line in any given Linux distribution.  Two of them are &#8220;local&#8221; meaning you must be sitting at the machine and the other one is to remotely access your machine using SSH or &#8220;Secure SHell&#8221;.  I&#8217;ll discuss using SSH in a later article.</p>
<p>As I said earlier, there are two ways to access the command line in most Linux distributions.  Ubuntu itself uses a mostly vanilla install of GNOME as it&#8217;s default desktop meaning it looks and behaves mostly as it would if you had compiled the software yourself.  The menus are laid out almost exactly the same.    </p>
<p>GNOME provides a software application called Terminal which gives you access to the command line.  You&#8217;ll find this program under Applications->Accessories->Terminal.  Starting this program will bring up a mostly white screen (by default anyway) that contains the following</p>
<p><code>dustin@mythtv:~$ </code></p>
<p>This is known as the command prompt.  This prompt has a certain format and it shows you who you are, what machine you&#8217;re on and where you are on that machine.  The first part is my username on the system, simly dustin.  After the @ symbol is the machine name which in my case is mythtv since that is this computer&#8217;s primary purpose.  Next is the colon followed by the tilde.  The colon is simply a separator where as the tilde means I am in my home directory.  This will change depending on what directory you are in.   The dollar sign marks the end of the command prompt and little more (it does also signify that I&#8217;m a normal user, but this isn&#8217;t necessarily universal).</p>
<p>The other method for accessing the command line is to access the system console (which is truly called a virtual console, but the reason isn&#8217;t important).  The system console exists &#8220;outside&#8221; of the GUI and in fact, the GUI is running &#8220;on top of&#8221; the console, much the same was as Windows 3.1 ran on top of DOS.  To access the console, press ctrl+alt+ a number such as 1.  By default, Ubuntu provides 6 consoles so you can substitute 1 for any number up to 6.  This screen will provide a prompt for you to login.  This is because the console exists as a separate process outside of your desktop.  Remember that Linux is a true multi-user operating system and is designed to allow multiple users to use the system at the same time.  On this screen, you would enter the same username and password that you use to log in to the desktop.  </p>
<p>You are now ready to interact with the system.  You can get started by trying out some of the most basic of commands such as &#8216;ls&#8217; (without the quotes) followed by pressing the enter key.  This command will list out the contents of the current directory.</p>
<p><code><br />
dustin@mythtv:~$ ls<br />
Desktop                fixsound                run_mtd          vmware<br />
Examples               nautilus-debug-log.txt  runmythfrontend<br />
Firefox_wallpaper.png  Pics                    settings<br />
dustin@mythtv:~$<br />
</code></p>
<p>Please excuse the formatting of the output, it&#8217;s much cleaner in the actual terminal window.</p>
<p>To change directories you use the &#8216;cd&#8217; command followed by where you want to go.  Be sure to separate the &#8216;cd&#8217; command from where you want to go with a space.  For example, if you want to go one directory higher you can type &#8216;cd ..&#8217; and you&#8217;ll be changed to the new directory.  </p>
<p><code><br />
dustin@mythtv:~$ cd ..<br />
dustin@mythtv:/home$ ls<br />
dustin  mysql.sql  mythtv<br />
dustin@mythtv:/home$<br />
</code></p>
<p>To enter the dustin directory you would type &#8216;cd dustin&#8217; and press enter.  </p>
<p>&#8216;cd&#8217; and &#8216;ls&#8217; are not the only commands available to you, not by a long shot.  For an extensive list of commands and what they do click on over to <a href="http://www.ss64.com/bash/">http://www.ss64.com/bash/</a>.  </p>
<p>Next time I&#8217;ll talk little bit about how the filesystem is designed as how to check some performance stats on your machine.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.dustinrue.com/archives/59/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Linux command line</title>
		<link>http://blog.dustinrue.com/archives/58</link>
		<comments>http://blog.dustinrue.com/archives/58#comments</comments>
		<pubDate>Sun, 16 Sep 2007 17:38:19 +0000</pubDate>
		<dc:creator>Dustin</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[Linux Series]]></category>
		<category><![CDATA[Things I Like]]></category>

		<guid isPermaLink="false">http://blog.dustinrue.com/2007/09/16/the-linux-command-line/</guid>
		<description><![CDATA[One of the top reasons that I use Linux at all is because of the command line environment. It is far more likely that you&#8217;ll see me using my Linux systems via putty from a Windows system than actually sitting at my Linux system itself. Now this isn&#8217;t because I&#8217;m anti Linux on the desktop [...]]]></description>
			<content:encoded><![CDATA[<p>One of the top reasons that I use Linux at all is because of the command line environment.  It is far more likely that you&#8217;ll see me using my Linux systems via putty from a Windows system than actually sitting at my Linux system itself.  Now this isn&#8217;t because I&#8217;m anti Linux on the desktop or anything, not at all.  In fact I do run Linux on my laptop for when I cannot remotely access my server at home such as when we&#8217;re traveling yet it&#8217;s usually so I can run a terminal.</p>
<p>Read on to learn more about what you can do with the Linux command line.<br />
<span id="more-58"></span></p>
<p>So enough about why I use the command line, lets talk about what you can do with it.  The command line gives you direct access to everything on the system and does so quickly.  You can use the command line remotely and do so securely using ssh.  This allows you to manipulate files including copying, moving, renaming (moving and renaming are the same thing actually) and editing.  </p>
<p>The basic command line tools provided on all Linux systems is from the <a href="http://www.gnu.org">GNU project</a> which is why you&#8217;ll sometimes hear Linux referred to as GNU/Linux.  Linux couldn&#8217;t exist without the GNU tools.  In fact, there is no way it would ever boot at all without their tools doing some of the dirty work.  </p>
<p>Some of the most basic tools include bash, top, ls, cp and so on.  Along with the basic file manipulation programs are a host of file editors, http, ftp, ssh clients and even bittorrent and all of these programs work as if you were sitting at the machine, even when you&#8217;re miles away.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.dustinrue.com/archives/58/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Two new series coming</title>
		<link>http://blog.dustinrue.com/archives/52</link>
		<comments>http://blog.dustinrue.com/archives/52#comments</comments>
		<pubDate>Thu, 30 Aug 2007 02:47:53 +0000</pubDate>
		<dc:creator>Dustin</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[Home Networking Series]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Linux Series]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://blog.dustinrue.com/2007/08/29/two-new-series-coming/</guid>
		<description><![CDATA[I have a couple of ideas for a new series I&#8217;ll be kicking off soon and hope people find them interesting. I&#8217;m going to do a bit of writing about setting up home networks and getting the most out of the GNU/Linux command line. The basics of computer networking are very easy and a home [...]]]></description>
			<content:encoded><![CDATA[<p>I have a couple of ideas for a new series I&#8217;ll be kicking off soon and hope people find them interesting.  I&#8217;m going to do a bit of writing about setting up home networks and getting the most out of the GNU/Linux command line.</p>
<p>The basics of computer networking are very easy and a home network almost always employs nothing more than the most basic parts of a computer network.  I&#8217;ll be breaking down these parts as well as what to look for in a broadband connection, simple things you can do to help protect your network, when to go wired over wireless and more.  </p>
<p>On the Linux side I&#8217;ll be covering the basics of what the command line is, why you would want to use it, how to use it and tidbits on why I prefer to never actually sit at my Linux system.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.dustinrue.com/archives/52/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
