<?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>FreeMacUnix.com &#187; Definitions</title>
	<atom:link href="http://www.freemacunix.com/category/definitions/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.freemacunix.com</link>
	<description>Terminal for the Rest of Us</description>
	<lastBuildDate>Sat, 26 Nov 2011 10:42:58 +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>Apropos</title>
		<link>http://www.freemacunix.com/apropos/</link>
		<comments>http://www.freemacunix.com/apropos/#comments</comments>
		<pubDate>Thu, 08 Jan 2009 19:35:13 +0000</pubDate>
		<dc:creator>Chad Sweely</dc:creator>
				<category><![CDATA[Definitions]]></category>
		<category><![CDATA[Lessons]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://www.freemacunix.com/apropos/</guid>
		<description><![CDATA[Ever wanted to use a command to do something, but couldn&#8217;t quite figure out the actual command to accomplish what you need done? Try using apropos! Apropos is a way to browse through the help area of the Unix/Linux operating system for a command that will help achieve your goal. For example, if I wanted [...]]]></description>
			<content:encoded><![CDATA[<p>Ever wanted to use a command to do something, but couldn&#8217;t quite figure out the actual command to accomplish what you need done? Try using <code>apropos</code>! <code>Apropos</code> is a way to browse through the help area of the Unix/Linux operating system for a command that will help achieve your goal. For example, if I wanted to find commands that relate to &#8220;secure&#8221;, I would enter <code>apropos secure</code> at the command line, and the kernel would return the results listed below along with any services that involve &#8216;secure&#8217;:</p>
<p align="center"><img src="http://www.freemacunix.com/images/scrnshotapropos.png" title="Apropos Results" /></p>
<p>As always, if you wanted to get a more elaborate description on a command or service, you can always use <code>man</code> (shortened for: manual). This will display a full description, and various options of a command which you have found using <code>apropos</code>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.freemacunix.com/apropos/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Pipes</title>
		<link>http://www.freemacunix.com/pipes/</link>
		<comments>http://www.freemacunix.com/pipes/#comments</comments>
		<pubDate>Tue, 02 Jan 2007 07:44:37 +0000</pubDate>
		<dc:creator>richard</dc:creator>
				<category><![CDATA[Definitions]]></category>
		<category><![CDATA[Essentials]]></category>
		<category><![CDATA[Lessons]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://www.freemacunix.com/pipes/</guid>
		<description><![CDATA[I mentioned previously that Unix uses lots of text files, which are easy to create and manipulate. Unix has a variety of commands to manipulate text files. The way to move text between these commands is with pipes. The pipe symbol is the vertical bar (&#124;) above your Enter key. For example, suppose you have [...]]]></description>
			<content:encoded><![CDATA[<p>I mentioned previously that Unix uses lots of <a href="http://www.freemacunix.com/viewing-text-files-cat-head-tail-more-less/">text files</a>, which are easy to create and manipulate. Unix has a variety of commands to manipulate text files. The way to move text between these commands is with <em>pipes</em>.  The pipe symbol is the vertical bar (<code>|</code>) above your Enter key.</p>
<p>For example, suppose you have a text file full of email addresses, with one email address per line. Suppose it&#8217;s named &#8220;emails.txt&#8221; and it&#8217;s on your Desktop.</p>
<p>To view the emails, type the following command in the Terminal:<br />
<code>cat ~/Desktop/emails.txt</code></p>
<p>To view the emails sorted alphabetically, type the following:<br />
<code>cat ~/Desktop/emails.txt | sort</code></p>
<p>The pipe causes the output of the <code>cat</code> command to be fed into the <code>sort</code> command, then outputted to the screen.  You can tack on as many pipe commands as you need.</p>
<p>To view the emails sorted alphabetically and with a prompt between each page, type:<br />
<code>cat ~/Desktop/emails.txt | sort | more</code></p>
<p>The list of emails &#8220;flows&#8221; from the <code>cat</code> command to the <code>sort</code> command to the <code>more</code> command, as if going through water pipes.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.freemacunix.com/pipes/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Directories, Files, and Path Names</title>
		<link>http://www.freemacunix.com/directories-files-and-path-names/</link>
		<comments>http://www.freemacunix.com/directories-files-and-path-names/#comments</comments>
		<pubDate>Wed, 11 Oct 2006 05:24:25 +0000</pubDate>
		<dc:creator>richard</dc:creator>
				<category><![CDATA[Definitions]]></category>
		<category><![CDATA[Essentials]]></category>
		<category><![CDATA[Lessons]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://www.freemacunix.com/directories-files-and-path-names/</guid>
		<description><![CDATA[In Unix, folders are called directories. Files are still files. The location of a file is called its path. The very top folder (or bottom folder depending on how you think about it) is called the root directory. This root directory is the one you see when you double click your hard drive. It contains [...]]]></description>
			<content:encoded><![CDATA[<p>In Unix, folders are called <em>directories</em>.  Files are still files.  The location of a file is called its <em>path</em>.  The very top folder (or bottom folder depending on how you think about it) is called the <em>root directory</em>.  This <em>root directory</em> is the one you see when you double click your hard drive.  It contains the Applications, Library, System, and Users folders.</p>
<p>Here is how you refer to various parts of the file system in Unix:</p>
<ul>
<li>The forward slash (<code>/</code>) refers to the <em>root folder</em>.</li>
<li>A path name beginning with a slash (<code>/</code>) is an <em>absolute path</em>.  For example, the path <code>/Applications</code> refers to the Applications folder, no matter where you currently are.  To see a list of Applications, type <code>ls /Applications</code>.  It doesn&#8217;t matter where you currently are because it&#8217;s an absolute path.</li>
<li>A path name beginning without a slash is a <em>relative path</em>.  For example, if you are currently in your Home folder, the path <code>Documents</code> refers to the Documents folder under your Home folder.  While in your Home folder, type <code>ls Documents</code> to see a list of your documents.  If you were to type <code>ls Applications</code> (without the slash), you&#8217;d likely see an error since you (probably) don&#8217;t have an Application folder inside your Home folder, and the path is relative to where you currently are.</li>
<li>The tilde (<code>~</code>) refers to your <em>Home</em> folder. (It&#8217;s also an absolute reference, despite not having a preceding slash.)  To see what&#8217;s in your Home folder, type <code>ls ~</code>.  To see your own Documents type <code>ls ~/Documents</code>.  It&#8217;s an absolute reference that works from anywhere.  For me, the path <code>/Users/richard/Documents</code> is the same as <code>~/Documents</code>.</li>
<li>You can use the tilde with someone else&#8217;s username to refer to their Home folder.  For example, to see what&#8217;s in Mary&#8217;s Home folder, type <code>ls ~mary</code> or to see what&#8217;s in John&#8217;s Documents folder, type <code>ls ~john/Documents</code>.</li>
</ul>
<p>You should now be able to refer to any path on your hard drive. Did I leave anything out?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.freemacunix.com/directories-files-and-path-names/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>What is a Unix command?</title>
		<link>http://www.freemacunix.com/what-is-a-unix-command/</link>
		<comments>http://www.freemacunix.com/what-is-a-unix-command/#comments</comments>
		<pubDate>Tue, 12 Sep 2006 06:56:05 +0000</pubDate>
		<dc:creator>richard</dc:creator>
				<category><![CDATA[Definitions]]></category>
		<category><![CDATA[Essentials]]></category>
		<category><![CDATA[Lessons]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://www.freemacunix.com/what-is-a-unix-command/</guid>
		<description><![CDATA[A Unix command is like an application, but it usually performs a much simpler task. There are Unix commands to show the contents of a file, to sort, to filter, and even to browse the Internet. Every Apple computer comes with hundreds of Unix commands that each do something unique. Contrast that with the dozens [...]]]></description>
			<content:encoded><![CDATA[<p>A <em>Unix command</em> is like an application, but it usually performs a much simpler task.  There are Unix commands to show the contents of a file, to sort, to filter, and even to browse the Internet.  Every Apple computer comes with <em>hundreds</em> of Unix commands that each do something unique.  Contrast that with the <em>dozens</em> of applications that come with every Mac, some of which perform very complicated workflows.</p>
<p>Mac applications have Preferences for selecting how you&#8217;d like them to run.  Unix commands, on the other hand, don&#8217;t (usually*) have any <em>preferences</em> or persistent settings.  To specify how a Unix command runs, you use what are called <em>flags</em> or <em>arguments</em>.  These flags or arguments are specified each time you run the command.</p>
<p>Arguments are specified with one dash and a letter (e.g. <code>-a -b -c</code>), or two dashes and a word (<code>--help</code>.)  Sometimes certain settings or parameters can follow an argument (<code>-u "stevejobs"</code> or <code>--user "stevejobs"</code>.)  Whenever you use multiple single-letter parameters, you can combine them (<code>-abc</code> is the same as <code>-a -b -c</code>.)</p>
<p>Here&#8217;s an example.  The <code>ls</code> command lists the files in a folder.  Open Terminal, type <code>ls</code>, and hit Enter.  You&#8217;ll see a list of the files and folders in your Home folder.  Each name is listed one after another.</p>
<p>If, instead, you&#8217;d like to see all the files listed in columns, type <code>ls -l</code> and his Enter.  You&#8217;ll see all the files listed in one column.  It will also show the dates the files were created, and other information.  This is the &#8220;long&#8221; format, as specified by the <code>l</code> flag.</p>
<p>You&#8217;ll notice that the list of files is in alphabetical order.  If you want to reverse it, you can use the <code>r</code> flag.  Type <code>ls -l -r</code>.  The files will be listed in reverse alphabetical order.  Since you can combine single letter flags, <code>ls -lr</code> will produce the same result.  Most of the time the order of the flags doesn&#8217;t matter either, so <code>ls -rl</code> also produces the same result.</p>
<p><img src="http://www.freemacunix.com/wp-content/uploads/2006/09/lscommand.png" alt="the ls command" class="rightalign" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.freemacunix.com/what-is-a-unix-command/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>What is a shell?</title>
		<link>http://www.freemacunix.com/what-is-a-shell/</link>
		<comments>http://www.freemacunix.com/what-is-a-shell/#comments</comments>
		<pubDate>Sun, 03 Sep 2006 06:02:32 +0000</pubDate>
		<dc:creator>richard</dc:creator>
				<category><![CDATA[Definitions]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://www.freemacunix.com/what-is-a-shell/</guid>
		<description><![CDATA[The term shell can refer to any interface to a computer (in the sense that the shell is the outermost part, the part people interact with.) But more commonly, shell is another way of saying &#8220;command line interface&#8221; or Terminal. On Unix systems, there are actually multiple shells &#8212; bash, sh, csh, tcsh, and many [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.freemacunix.com/wp-content/uploads/2006/09/topping-hershey-shell.jpg" class="alignright" alt="Hershey Shell photo" />The term <em>shell</em> can refer to any interface to a computer (in the sense that the shell is the outermost part, the part people interact with.)  But more commonly, <em>shell</em> is another way of saying &#8220;command line interface&#8221; or <a href="/what-is-the-terminal/">Terminal</a>.</p>
<p>On Unix systems, there are actually multiple shells &#8212; bash, sh, csh, tcsh, and many others.  The shell you use determines how you interact with the command line interface, but they&#8217;re all similar.  The default shell on Mac OS X is <em>bash</em>, or &#8220;Bourne Again Shell&#8221;.  Bash is the one we&#8217;ll be using.</p>
<p>To find out what shell you&#8217;re using, you can type <code>echo $0</code> into Terminal and push Enter.  It should return &#8220;bash&#8221;.</p>
<p>There isn&#8217;t much practical knowledge to be gained by knowing about the different shells, but I just didn&#8217;t want you to be surprised if you heard the terms <em>shell</em> or <em>bash</em>.</p>
<p>Further reading:<br />
<a href="http://en.wikipedia.org/wiki/Shell_%28computing%29">Wikipedia: Shell</a><br />
<a href="http://en.wikipedia.org/wiki/Bash">Wikipedia: bash</a></p>
<p>Is anything unclear? I’ll explain!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.freemacunix.com/what-is-a-shell/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>What is the Terminal?</title>
		<link>http://www.freemacunix.com/what-is-the-terminal/</link>
		<comments>http://www.freemacunix.com/what-is-the-terminal/#comments</comments>
		<pubDate>Sun, 03 Sep 2006 05:37:52 +0000</pubDate>
		<dc:creator>richard</dc:creator>
				<category><![CDATA[Definitions]]></category>
		<category><![CDATA[Essentials]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://www.freemacunix.com/what-is-the-terminal/</guid>
		<description><![CDATA[You&#8217;ll find Terminal in your Applications/Utilities folder. It&#8217;s through the Terminal that you access the command line interface of your Mac. In the same way that the graphical user interface (GUI) lets you operate your computer with a mouse, the command line interface (CLI) lets you operate your computer through typed commands. The graphical user [...]]]></description>
			<content:encoded><![CDATA[<p>You&#8217;ll find <em>Terminal</em> in your Applications/Utilities folder.  It&#8217;s through the Terminal that you access the <em>command line interface</em> of your Mac.  In the same way that the graphical user interface (GUI) lets you operate your computer with a mouse, the command line interface (CLI) lets you operate your computer through typed commands.  The graphical user interface is certainly easier to learn, but the command line interface can be very powerful!  For instance, you can easily move a file to a new folder by dragging it with the mouse.  But if you want to copy all the MP3 files anywhere in your Home folder, it&#8217;s must faster to use the command line, or Terminal.  (You&#8217;ll learn how to do this.)</p>
<p><img src="http://www.freemacunix.com/wp-content/uploads/2006/09/terminal_prefs.png" class="alignright" alt="Terminal preferences" />As long as you&#8217;re going to start using Terminal regularly, you might as well make it at home.  You can drag the Terminal to your Dock for easy access.  Also, you might want to change the look of Terminal by going to <strong>Window Settings</strong> in the Terminal menu.  Switch the drop down menu to <strong>Color</strong>, then change the color to your liking.  I personally like White on Black with a little transparency, but you can do whatever you like.</p>
<p>You might also want to switch to the <strong>Display</strong> menu and choose a different font and font size.  When you&#8217;re done, click <strong>Use Settings as Defaults</strong>.</p>
<p>If you really want to get fancy, you can also access the command line interface through a 3rd party application like <a href="http://www.freemacware.com/iterm/">iTerm</a>.  iTerm adds some niceties that Terminal doesn&#8217;t have, such as tabbed windows.  I know people that really like iTerm, but I personally just use Terminal.</p>
<p>Further reading:<br />
<a href="http://en.wikipedia.org/wiki/Terminal_%28application%29">Wikipedia: Terminal Application</a><br />
<a href="http://en.wikipedia.org/wiki/Text_terminal">Wikipedia: Text terminal</a><br />
<a href="http://en.wikipedia.org/wiki/Graphical_user_interface">Wikipedia: Graphical user interface</a><br />
<a href="http://en.wikipedia.org/wiki/Command_line_interface">Wikipedia: Command line interface</a></p>
<p>Is anything unclear?  I&#8217;ll explain!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.freemacunix.com/what-is-the-terminal/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>What is Unix?</title>
		<link>http://www.freemacunix.com/what-is-unix/</link>
		<comments>http://www.freemacunix.com/what-is-unix/#comments</comments>
		<pubDate>Sun, 03 Sep 2006 02:52:10 +0000</pubDate>
		<dc:creator>richard</dc:creator>
				<category><![CDATA[Definitions]]></category>
		<category><![CDATA[Essentials]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://www.freemacunix.com/what-is-unix/</guid>
		<description><![CDATA[Unix is a computer operating system that was developed in the 60&#8242;s and 70&#8242;s at AT&#038;T&#8217;s Bell Labs. It was designed as a robust, multi-user, multi-tasking operating system and has historically been popular on large mainframe systems at universities and governments. Since then, many variants have descended from the first Unix, including Linus Torvald&#8217;s college [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.freemacunix.com/wp-content/uploads/2006/09/unix.png" class="alignright" alt="Unix logo" />Unix is a computer operating system that was developed in the 60&#8242;s and 70&#8242;s at AT&#038;T&#8217;s Bell Labs.  It was designed as a robust, multi-user, multi-tasking operating system and has historically been popular on large mainframe systems at universities and governments.</p>
<p>Since then, many variants have descended from the first Unix, including Linus Torvald&#8217;s college project <a href="http://en.wikipedia.org/wiki/Linux">Linux</a>.  Unix was originally spelled &#8220;UNICS&#8221;, an acronym for Uniplexed Information and Computing System.</p>
<p>Mac OS X is built on a version of Unix called FreeBSD, which means that every modern Mac inherits the strength of a powerful, time-tested operating system.  <a href="http://en.wikipedia.org/wiki/Freebsd">FreeBSD</a> is widely regarded as one of the most secure operating systems.  Apple combines this with a beautiful interface.  Mac OS X is like the engine of a classic muscle car in a shiny, modern body.</p>
<p>Further reading:<br />
<a href="http://www.apple.com/macosx/features/unix/">Apple: Solid as a Rock</a><br />
<a href="http://en.wikipedia.org/wiki/Unix">Wikipedia: Unix</a><br />
<a href="http://www.levenez.com/unix/history.html">The Unix family tree (diagram)</a></p>
<p>Is anything unclear?  I&#8217;ll explain!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.freemacunix.com/what-is-unix/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

