<?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:go='http://ns.gigaom.com/'
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>GigaOM &#187; Apple</title>
	<atom:link href="http://gigaom.com/apple/tag/darwin/feed/" rel="self" type="application/rss+xml" />
	<link>http://gigaom.com</link>
	<description></description>
	<lastBuildDate>Sun, 27 May 2012 14:23:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='gigaom.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://0.gravatar.com/blavatar/0db8f6557d022075dbbf010c54d46d93?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>GigaOM &#187; Apple</title>
		<link>http://gigaom.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://gigaom.com/osd.xml" title="GigaOM" />
	<atom:link rel='hub' href='http://gigaom.com/?pushpress=hub'/>
		<item>
		<title>Dig Into Unix</title>
		<link>http://gigaom.com/apple/dig-into-unix/</link>
		<comments>http://gigaom.com/apple/dig-into-unix/#comments</comments>
		<pubDate>Wed, 10 Jun 2009 20:00:51 +0000</pubDate>
		<dc:creator>Jon Buys</dc:creator>
				<category><![CDATA[CNN Big Tech]]></category>
		<category><![CDATA[NYT Enterprise]]></category>
		<category><![CDATA[SYN Feature Enterprise]]></category>
		<category><![CDATA[darwin]]></category>
		<category><![CDATA[dig into unix]]></category>
		<category><![CDATA[os x]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://theappleblog.com/?p=25093</guid>
		<description><![CDATA[When Apple revamped its operating system and adopted Nextstep as the base of OS X, they brought along with it an extremely powerful version of Unix based on the open-source project FreeBSD, now known as Darwin. Unix has a long history, one that started in the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gigaom.com&#038;blog=14960843&#038;post=172838&#038;subd=gigaom2&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img  title="terminal_icon" src="http://gigapple.files.wordpress.com/2009/06/terminal_icon.png?w=150&h=150" alt="terminal_icon" width="150" height="150" class=" alignleft" /></p>
<p class="excerpt">When Apple revamped its operating system and adopted <a href="http://en.wikipedia.org/wiki/NeXTSTEP">Nextstep</a> as the base of OS X, they brought along with it an extremely powerful version of Unix based on the open-source project <a href="http://www.freebsd.org/">FreeBSD</a>, now known as <a href="http://developer.apple.com/referencelibrary/Darwin/">Darwin</a>.</p>
<p>Unix has a long history, one that started in the basements of Bell Labs by a group of AT&amp;T engineers some 40 years ago. A professor in a C programming course I took once said that they were supposed to be writing drivers for the AT&amp;T hardware, but instead, they wanted some way to use the system to play games, so they invented Unix.</p>
<p>Unix is now a mature and robust operating system, and since OS X is based on Unix, it has inherited all of its power, and some of its complexity. The beautiful <a href="http://developer.apple.com/macosx/architecture/index.html">aqua</a> interface that we are used to seeing is really all that is needed, but if you would like to take a look at what makes your computer tick, Apple included Terminal.app to act as a window into the GUI and into the Unix soul of OS X.</p>
<p>Nick started a <a href="http://gigaom.com/apple/unix-tip-remember-the-tab/">great series</a> back in January 2007 on this subject, and now I&#8217;d like to cover some of the basics again, and maybe bring a different point of view to the table as well. <span id="more-172838"></span></p>
<p style="text-align: center;"><img  title="Finding Terminal" src="http://gigapple.files.wordpress.com/2009/06/findingterminal.png?w=590&h=343" alt="Finding Terminal" width="590" height="343" class=" alignleft" /></p>
<p>Open Terminal.app (found in Applications → Utilities), and you&#8217;ll see a window with a prompt waiting for you to start typing.</p>
<p style="text-align: center;"><img  title="Terminal" src="http://gigapple.files.wordpress.com/2009/06/terminal1.png?w=505&h=367" alt="Terminal" width="505" height="367" class=" alignleft" /></p>
<p>At this point, it&#8217;s important to understand a few things about the Terminal. For one, the commands that you can type are interpreted and carried out immediately, no waiting around. So if you tell it to remove a file, it will do it right then, with no easy way of recovering it. There isn&#8217;t a recycle bin on the command line (not without a little coaxing, anyway). Secondly, since Unix was developed decades ago, many of the commands seem a bit archaic. Back when most of these utilities were written, they were all abbreviated to save space and cut down on the number of keystrokes you&#8217;d need to type. Below is a list of a few essentials, and another list from Nick&#8217;s post is <a href="http://gigaom.com/apple/unix-tip-commands/">here</a>.</p>
<ul>
<li><code>ls</code> (list): Probably one of the most important commands, it lets you see what&#8217;s in your current directory.</li>
<li><code>cd</code> (change directory): This is how you move about the filesystem in Unix, for example, to move from Library to Documents.</li>
<li><code>file</code>: This one isn&#8217;t short for anything, but it will give you a brief description of what a particular file is.</li>
<li><code>cat</code> (concatenate): Or &#8220;Grab everything in this file and let me read it.&#8221;</li>
<li><code><a href="http://gigaom.com/apple/unix-tip-its-a-man-man/">man</a></code> (manual): The online manual will describe most commands that you&#8217;re interested in; for example, typing <code>man ls</code> will give you the manual page about the <code>ls</code> command.</li>
</ul>
<p>It might be helpful to open a Finder window and put it right next to the Terminal. Open the Finder so it shows your home directory. Type <code>ls</code> in the Terminal to see the same files that you see in the Finder. Try another command: <code>touch</code>. <code>touch</code> is designed to change the last accessed timestamp of a file, but it will also create a blank file. You can see the file created in the Finder as well. You can cat the file, and see that there is nothing in it.</p>
<p>Now that you&#8217;ve created a file, and looked at its (blank) contents, you can remove the file using the <code>rm</code> command. This is one of those dangerous commands that, if used carelessly, can really screw things up. For this example, carefully type <code>rm file</code> into the terminal, and watch the file disappear in the Finder. You&#8217;ll notice that your Trash stays empty &#8212; that file is goners.</p>
<p>The Unix filesystem is a <a href="http://www.pathname.com/fhs/pub/fhs-2.3.html">nested hierarchy</a>, with each directory separated by a forward slash (<code>/</code>). The current working directory is symbolized as a dot (<code>.</code>), and the parent directory is symbolized by two dots (<code>..</code>). The top of the hierarchy, known as the root, is symbolized by a single forward slash.</p>
<p>So, to move to the parent directory, you could type <code>cd ..</code>. If you were in the Library directory and you typed this command, you would then be moved into your home directory. To see the very top of the hierarchy, you would type <code>cd /</code>. Type this command now.</p>
<p>Also, move in the Finder to the hard drive where you have OS X installed. I have mine named, originally, &#8220;OS X&#8221;.  Type <code>ls</code> in the Terminal, and you&#8217;ll notice a few more files than you can see in the Finder. These files are important Unix system files, and should not be touched unless you really know what you&#8217;re doing&#8230;and really, not even then. To illustrate the importance of these files, you could type <code>file mach_kernel</code>.</p>
<p><img  title="Terminal" src="http://gigapple.files.wordpress.com/2009/06/terminal_02.png?w=545&h=407" alt="Terminal" width="545" height="407" class=" alignleft" /></p>
<p>This is the kernel, the core of the operating system. Do <strong>not</strong> mess with this file. Several of the other files are directories. You can change directories into <code>/bin</code>, for example, and type <code>ls</code> to list the contents of that directory. You&#8217;ll find a file in that directory named &#8220;ls,&#8221; which is the executable for the <code>ls</code> command. When you type <code>ls</code> into the terminal, it executes this tiny app. A great place to learn about Unix is to get a list of this directory, and then read the <code>man</code> page for every file listed.</p>
<p>To exit the Terminal, just CMD-Q like any other app, and you are back in the comforts of OS X.</p>
<p>This has been a very brief overview of how to go from absolutely no Unix knowledge whatsoever to the smallest amount of Unix knowledge necessary to poke around a bit. There&#8217;s a lot of power under there, but before you can really start to harness it, you need to get a decent understanding of the hows and whys.</p>
<p><strong>Related research and analysis from GigaOM Pro:</strong><br />Subscriber content. <a href="http://pro.gigaom.com/?utm_source=apple&utm_medium=editorial&utm_campaign=auto3&utm_term=172838+dig-into-unix&utm_content=oszen">Sign up for a free trial</a>.</p><ul><li><a href="http://pro.gigaom.com/2011/03/why-ipad-2-will-lead-consumers-into-the-post-pc-era/?utm_source=apple&amp;utm_medium=editorial&amp;utm_campaign=waterfall?utm_source=apple&utm_medium=editorial&utm_campaign=auto3&utm_term=172838+dig-into-unix&utm_content=oszen">Why iPad 2 Will Lead Consumers Into the Post-PC&nbsp;Era</a></li><li><a href="http://pro.gigaom.com/2011/03/the-near-term-evolution-of-social-commerce/?utm_source=apple&amp;utm_medium=editorial&amp;utm_campaign=waterfall?utm_source=apple&utm_medium=editorial&utm_campaign=auto3&utm_term=172838+dig-into-unix&utm_content=oszen">The Near-Term Evolution of Social&nbsp;Commerce</a></li><li><a href="http://pro.gigaom.com/2011/02/content-farms-the-players-the-benefits-the-risks/?utm_source=apple&amp;utm_medium=editorial&amp;utm_campaign=waterfall?utm_source=apple&utm_medium=editorial&utm_campaign=auto3&utm_term=172838+dig-into-unix&utm_content=oszen">Content Farms: The Players, The Benefits, The&nbsp;Risks</a></li></ul><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gigaom.com&#038;blog=14960843&#038;post=172838&#038;subd=gigaom2&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gigaom.com/apple/dig-into-unix/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7d5b8247e2eb580f5443ade7bbf2a067?s=96&#38;d=retro&#38;r=PG" medium="image">
			<media:title type="html">jBuys</media:title>
		</media:content>

		<media:content url="http://gigapple.files.wordpress.com/2009/06/terminal_icon.png" medium="image">
			<media:title type="html">terminal_icon</media:title>
		</media:content>

		<media:content url="http://gigapple.files.wordpress.com/2009/06/findingterminal.png" medium="image">
			<media:title type="html">Finding Terminal</media:title>
		</media:content>

		<media:content url="http://gigapple.files.wordpress.com/2009/06/terminal1.png" medium="image">
			<media:title type="html">Terminal</media:title>
		</media:content>

		<media:content url="http://gigapple.files.wordpress.com/2009/06/terminal_02.png" medium="image">
			<media:title type="html">Terminal</media:title>
		</media:content>
	</item>
		<item>
		<title>Why Mac Security Matters: OS X Rootkit Hunter</title>
		<link>http://gigaom.com/apple/why-mac-security-matters-os-x-rootkit-hunter/</link>
		<comments>http://gigaom.com/apple/why-mac-security-matters-os-x-rootkit-hunter/#comments</comments>
		<pubDate>Wed, 23 Jan 2008 11:00:20 +0000</pubDate>
		<dc:creator>Bob Rudis</dc:creator>
				<category><![CDATA[Asides]]></category>
		<category><![CDATA[Commentary]]></category>
		<category><![CDATA[darwin]]></category>
		<category><![CDATA[Malware]]></category>
		<category><![CDATA[os x]]></category>
		<category><![CDATA[rootkit]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://theappleblog.com/2008/01/23/why-mac-security-matters-os-x-rootkit-hunter/</guid>
		<description><![CDATA[After blogging about the need to use and maintain an anti-virus solution for your OS X systems, an anonymous reply questioning the need to use security tools at all on OS X systems gave me pause. You do not need me to link to the numerous [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gigaom.com&#038;blog=14960843&#038;post=171277&#038;subd=gigaom2&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img src='http://gigapple.files.wordpress.com/2008/01/osxrootkit.png?w=604' alt='OS X Rootkit Hunter Logo'  style="margin-right:10px" class=" alignleft" />After <a href="http://gigaom.com/apple/2007-apple-year-in-review-security/">blogging about the need</a> to use and maintain an anti-virus solution for your OS X systems, an anonymous reply questioning the need to use security tools at all on OS X systems gave me pause. You do not need me to link to the numerous articles flying around the internets that report on how one reason switchers are flocking to OS X is because of the lack of prevalence of malware. Folks are tired of viruses, worms, trojans, etc. hammering their systems. They are even more harrowed by having to maintain vigilance over their anti-virus programs, hoping they are not too far out of sync with the current &#8220;DAT&#8221;. However, switching to run OS X to avoid running anti-virus programs may not be the wisest choice.</p>
<p>To answer the &#8220;do we really need security tools for OS X?&#8221; question in a slightly different way than you&#8217;ve seen from many technology pundits, I&#8217;d like to turn your attention to utility called <a href="rkhunter.sourceforge.net/">rkhunter</a> or &#8220;rootkit hunter&#8221;. As most TAB readers should know by now, OS X has it&#8217;s origins in Unix (the &#8220;darwin&#8221; base comes from FreeBSD), and most folks believe *nix variants (linux, FreeBSD, Solaris, etc) to be extremely secure, free of the problems that plague those sad, sad Windows users. If you fall into that camp, please take a moment and browse the <a href="http://secunia.com/product/1132/">Secunia FreeBSD 5.x</a> artchives. Secunia reports show over 91 vulnerabilities, with critical ones impacting core services such as file sharing and remote access. This should not be surprising since Unix systems have been favorite targets for hackers as they provide such a powerful base to launch further exploits. One of the more gnarly hacks is the installation of a rootkit &#8211; a program that can take surreptitious control of your system. And, guess what: <b>your</b> Mac OS X workstation/server is susceptible to rootkits just like any other Unix system, even with Leopeard&#8217;s enhanced security features. How can you fight something you can&#8217;t even see? You need a tool to help. Modern anti-virus products can and usually do cover rootkits, but the rkhunter tool may cover additional rootkits and may update rootkit signatures more frequently than a traditional vendor.</p>
<p>I wouldn&#8217;t recommend trying to get rkhunter installed on your Mac since it will require some enhanced Terminal-fu. Thankfully, <a href="http://www.christian-hornung.de/">Christian Hornung</a> understood the need for such a tool and built a wrapper for it called (surprisingly enough), <a href="http://www.christian-hornung.de/binary/OS-X-Rootkit-Hunter-0.2.dmg">OS X Rootkit Hunter</a> [dmg], complete with installer. After installing the package, navigate to <code>Applications->OSXrkhnter</code> and run the &#8220;Rootkit Hunter&#8221; app.</p>
<p>It&#8217;s good practice to update the rootkit database (similar to a virus engine DAT update) before each scan since there may be new rootkit signatures from new or altered exploits. When you start the scan, you will see a password dialog &#8211;  just as you would with any operation that requires additional privileges to run &#8211; since OS X Rootkit Hunter needs to look in places your normal account user account cannot. You will also see Terminal windows displaying a running report of what rkhunter has or has not found (since this front-end does not free you from all the gory details of what lies beneath Aqua).</p>
<p><center><a href='http://gigapple.files.wordpress.com/2008/01/rkhunter02.jpg' title='OS X Rootkit Hunter (large)'><img src='http://gigapple.files.wordpress.com/2008/01/rkhunter02.jpg?w=604' alt='OS X Rootkit Hunter (large)'  class=" alignleft" /></a></center></p>
<p>While you can download and run OS X Rootkit Hunter, I would strongly suggest that less technical users obtain one of the commercially available malware scanners since the output from OS X Rootkit Hunter can be a bit daunting. The presence and history of this tool should be enough justification for the need to run security software on your systems.</p>
<p><strong>Related research and analysis from GigaOM Pro:</strong><br />Subscriber content. <a href="http://pro.gigaom.com/?utm_source=apple&utm_medium=editorial&utm_campaign=auto3&utm_term=171277+why-mac-security-matters-os-x-rootkit-hunter&utm_content=hrbrmstr">Sign up for a free trial</a>.</p><ul><li><a href="http://pro.gigaom.com/2011/03/why-ipad-2-will-lead-consumers-into-the-post-pc-era/?utm_source=apple&amp;utm_medium=editorial&amp;utm_campaign=waterfall?utm_source=apple&utm_medium=editorial&utm_campaign=auto3&utm_term=171277+why-mac-security-matters-os-x-rootkit-hunter&utm_content=hrbrmstr">Why iPad 2 Will Lead Consumers Into the Post-PC&nbsp;Era</a></li><li><a href="http://pro.gigaom.com/2011/03/the-near-term-evolution-of-social-commerce/?utm_source=apple&amp;utm_medium=editorial&amp;utm_campaign=waterfall?utm_source=apple&utm_medium=editorial&utm_campaign=auto3&utm_term=171277+why-mac-security-matters-os-x-rootkit-hunter&utm_content=hrbrmstr">The Near-Term Evolution of Social&nbsp;Commerce</a></li><li><a href="http://pro.gigaom.com/2011/02/content-farms-the-players-the-benefits-the-risks/?utm_source=apple&amp;utm_medium=editorial&amp;utm_campaign=waterfall?utm_source=apple&utm_medium=editorial&utm_campaign=auto3&utm_term=171277+why-mac-security-matters-os-x-rootkit-hunter&utm_content=hrbrmstr">Content Farms: The Players, The Benefits, The&nbsp;Risks</a></li></ul><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gigaom.com&#038;blog=14960843&#038;post=171277&#038;subd=gigaom2&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gigaom.com/apple/why-mac-security-matters-os-x-rootkit-hunter/feed/</wfw:commentRss>
		<slash:comments>58</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a08d08f6b541441fccf36bc6392a0784?s=96&#38;d=retro&#38;r=PG" medium="image">
			<media:title type="html">hrbrmstr</media:title>
		</media:content>

		<media:content url="http://gigapple.files.wordpress.com/2008/01/osxrootkit.png" medium="image">
			<media:title type="html">OS X Rootkit Hunter Logo</media:title>
		</media:content>

		<media:content url="http://gigapple.files.wordpress.com/2008/01/rkhunter02.jpg" medium="image">
			<media:title type="html">OS X Rootkit Hunter (large)</media:title>
		</media:content>
	</item>
	</channel>
</rss>
