<?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"
	>

<channel>
	<title>Michael Petrov's Blog</title>
	<atom:link href="http://fmgreet.com/blog/MichaelPetrov/feed/" rel="self" type="application/rss+xml" />
	<link>http://fmgreet.com/blog/MichaelPetrov</link>
	<description>Just another FMGreet Blogs weblog</description>
	<pubDate>Fri, 27 Jun 2008 22:35:05 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
	<language>en</language>
			<item>
		<title>FMGreet Updates - June 27, 2008</title>
		<link>http://fmgreet.com/blog/MichaelPetrov/2008/06/27/fmgreet-updates-june-27-2008/</link>
		<comments>http://fmgreet.com/blog/MichaelPetrov/2008/06/27/fmgreet-updates-june-27-2008/#comments</comments>
		<pubDate>Fri, 27 Jun 2008 22:35:05 +0000</pubDate>
		<dc:creator>Michael Petrov</dc:creator>
		
		<category><![CDATA[FMGreet]]></category>

		<guid isPermaLink="false">http://fmgreet.com/blog/MichaelPetrov/?p=5</guid>
		<description><![CDATA[Today was a very exciting day for the FMGreet team - we have completed a number of updates that should make this site much better for everyone! Our new features include:

All pages now properly accept data in any language, special characters are now properly handled.
Email notifications for topics you are active in.
When replying to a [...]]]></description>
			<content:encoded><![CDATA[<p>Today was a very exciting day for the FMGreet team - we have completed a number of updates that should make this site much better for everyone! Our new features include:</p>
<ul>
<li>All pages now properly accept data in any language, special characters are now properly handled.</li>
<li>Email notifications for topics you are active in.</li>
<li>When replying to a topic, the last reply is shown to you for reference purposes (great when answering a post with multiple questions).</li>
<li>The Connect system is now more refined and displays a top 10 list of your results, with a relative match percentage bar. To see more matches a link is available that will show all possible matches sorted by their relative match score to you.</li>
</ul>
<p>I hope all of you enjoy these new features and take a few minutes to check them out. If you have suggestions for how we can make FMGreet better - leave us a comment in this blog post!</p>
]]></content:encoded>
			<wfw:commentRss>http://fmgreet.com/blog/MichaelPetrov/2008/06/27/fmgreet-updates-june-27-2008/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Basic Commands within the OSX Terminal</title>
		<link>http://fmgreet.com/blog/MichaelPetrov/2008/06/25/basic-terminal-commands/</link>
		<comments>http://fmgreet.com/blog/MichaelPetrov/2008/06/25/basic-terminal-commands/#comments</comments>
		<pubDate>Thu, 26 Jun 2008 03:08:29 +0000</pubDate>
		<dc:creator>Michael Petrov</dc:creator>
		
		<category><![CDATA[OSX]]></category>

		<category><![CDATA[Tutorials]]></category>

		<category><![CDATA[bash]]></category>

		<category><![CDATA[basic]]></category>

		<category><![CDATA[command line]]></category>

		<category><![CDATA[linux]]></category>

		<category><![CDATA[scripting]]></category>

		<category><![CDATA[shell]]></category>

		<category><![CDATA[terminal]]></category>

		<category><![CDATA[tutorial]]></category>

		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://fmgreet.com/blog/MichaelPetrov/?p=3</guid>
		<description><![CDATA[In this quick blog post I would like to introduce the basic commands that are vital for anyone who is planning to use the terminal. This tutorial is targetted at the OSX terminal however all of the commands will be fully valid on any Unix/Linux system.


Opening the Terminal
The terminal can be opened from Applications -&#62; [...]]]></description>
			<content:encoded><![CDATA[<p>In this quick blog post I would like to introduce the basic commands that are vital for anyone who is planning to use the terminal. This tutorial is targetted at the OSX terminal however all of the commands will be fully valid on any Unix/Linux system.</p>
<p><a href="http://fmgreet.com/blog/MichaelPetrov/files/2008/06/picture-5.png"><img class="alignnone size-medium wp-image-4" src="http://fmgreet.com/blog/MichaelPetrov/files/2008/06/picture-5-300x218.png" alt="Terminal window with some basic commands." width="300" height="218" /></a></p>
<p><span id="more-3"></span></p>
<p><strong>Opening the Terminal</strong></p>
<p>The terminal can be opened from Applications -&gt; Utilities -&gt; Terminal</p>
<p>Once the terminal is opened you are presented with a command line, this command line accepts typed commands and executes them when the return/enter key is pressed. Previously executed commands can be accessed using the up/down arrows and edited as new commands.</p>
<p><strong>File System Navigation</strong></p>
<p>In order to accomplish anything in the terminal you need to be able to navigate within it to a specific directory. The following commands can be used to navigate:</p>
<ul>
<li><strong>pwd</strong> - prints the working directory, allows you to immidiately see where you are currently in the system. Sample output: &#8220;/Users/mpetrov&#8221;</li>
<li><strong>cd directoryName</strong> - changes the current working directory to the specified directory. The path can be absolute (starting with a forward slash) such as &#8220;cd /Users/mpetrov/Documents/&#8221;, or it can be relative (starting with a ./ or nothing at all) such as &#8220;cd Documents&#8221; while the current directory is /Users/mpetrov. Both commands achive the same result</li>
<li><strong>ls</strong> - lists files in the current directory, a variation &#8220;ls -la&#8221; is available to see all the files including special hidden files whose names start with a &#8220;.&#8221;</li>
</ul>
<p><strong>Executing Commands</strong></p>
<p>Once you have navigated to the correct folder with your scripts, it&#8217;s time to execute them. Command execution in a unix shell is very simple and can be in the form of relative and absolute paths.</p>
<ul>
<li><strong>./commandName.sh</strong> - executes the file named &#8220;commandName.sh&#8221; which is located in the current folder</li>
<li><strong>./commandName.sh opt1 opt2</strong> - executes the file named &#8220;commandName.sh&#8221; in the current folder and passes two parameters to it, &#8220;opt1&#8243; and &#8220;opt2&#8243;. Parameters, also known as arguments, allow you to customize what the command does. For example the command &#8220;mkdir test&#8221; will create a new directory called test. It knows to create the directory with the name of &#8220;test&#8221; because &#8220;test&#8221; is a parameter for the &#8220;mkdir&#8221; command.</li>
<li><strong>chmod +x commandName.sh</strong> - sets the &#8220;execution&#8221; flag for a specific command, allowing it to be executed. This is a security feature on all unix systems which only allows files to be executed which have the execute flag set. If you are creating your own scripts you will have to set this flag before you can test it.</li>
</ul>
<p><strong>Working with Files and Directories<br />
</strong></p>
<p>In this section I am going to only list some of the basic commands to manipulate files and directories.</p>
<ul>
<li><strong>mkdir directoryName</strong> - creates a directory in the current working directory with the name of &#8220;directoryName&#8221;.</li>
<li><strong>rmdir directoryName</strong> - deletes a directory &#8220;directoryName&#8221;, the directory must be empty before it can be deleted. Often the &#8220;rm -R&#8221; command is used instead to delete a directory that has files within it.</li>
<li><strong>rm fileName</strong> - deletes a file in the current directory with the name of &#8220;fileName&#8221;, will not delete directories.</li>
<li><strong>rm -R fileOrDirectoryName</strong> - deletes a file or directory with the given name, if the given name is a directory its contents are recursively deleted. This means that any files or sub directories will be deleted with this command.</li>
</ul>
<p><strong>Conclusion</strong></p>
<p>These are just the very basic commands available within the terminal, however they should allow you to navigate through folders and always know where you are currently located. In the future more advanced posts will be added that expand on some other interesting terminal commands.</p>
]]></content:encoded>
			<wfw:commentRss>http://fmgreet.com/blog/MichaelPetrov/2008/06/25/basic-terminal-commands/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
