<?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/terminal/feed/" rel="self" type="application/rss+xml" />
	<link>http://gigaom.com</link>
	<description></description>
	<lastBuildDate>Fri, 10 Feb 2012 14:29:38 +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>How to undo a lot of Lion&#8217;s little changes using Terminal</title>
		<link>http://gigaom.com/apple/how-to-undo-a-lot-of-lions-little-changes-using-terminal/</link>
		<comments>http://gigaom.com/apple/how-to-undo-a-lot-of-lions-little-changes-using-terminal/#comments</comments>
		<pubDate>Wed, 27 Jul 2011 18:35:18 +0000</pubDate>
		<dc:creator>Bryan Schuetz</dc:creator>
				<category><![CDATA[App Store]]></category>
		<category><![CDATA[command]]></category>
		<category><![CDATA[hidden settings]]></category>
		<category><![CDATA[lion]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[Mac OS X Lion]]></category>
		<category><![CDATA[MacBook Air]]></category>
		<category><![CDATA[operating systems]]></category>
		<category><![CDATA[platforms]]></category>
		<category><![CDATA[preferences]]></category>
		<category><![CDATA[settings]]></category>
		<category><![CDATA[system-preferences]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[terminal.app]]></category>

		<guid isPermaLink="false">http://gigaom.com/?p=384229</guid>
		<description><![CDATA[Mac OS X Lion has been out long enough for a lot of us to realize that there might be a couple of essential tweaks we’d really like to make. Here's how to make some changes that require more than just a toggle in preferences.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gigaom.com&amp;blog=14960843&amp;post=384229&amp;subd=gigaom2&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img  style="border: none!important;" title="terminal" src="http://gigaom2.files.wordpress.com/2011/07/terminal.jpg?w=604" alt=""   class="alignleft size-full wp-image-384233" />Mac OS X Lion has been out for about a week now, long enough for a lot of us to realize that there might be a couple of essential tweaks we’d really like to make to our new systems. However, if you want to disable some of the new animations, reclaim some lost space in Safari’s bookmarks bar, or try to roll back some of the iOS-ification that has gone on, the options available in those default preference panes just won’t cut it.</p>
<p>Luckily though, the good old ‘defaults write’ command for OS X&#8217;s Terminal.app is still around to help us pop open that hood and tweak all the stuff that can&#8217;t be configured with just a point and a click. Here&#8217;s a quick roundup of a few defaults write commands that might make your early days with the new big cat a bit easier.</p>
<h2 id="a_few_words_about_8216defaults_write8217">A few words about ‘defaults write’</h2>
<p>The ‘<a href="http://developer.apple.com/library/mac/#documentation/Darwin/Reference/ManPages/man1/defaults.1.html">defaults</a>’ command allows users to interact with their user defaults via the terminal (located in the <strong>Applications&gt;Utilities</strong> folder). Users can read, write, and delete user preference values that often aren’t available for configuration within an application&#8217;s normal preference panel. These commands can all be executed via the Terminal, and reversed by simply repeating the command with the original value swapped in for the replacements below. In most cases you’ll have to restart the application you’re trying to tweak before you can see the command’s effect. If you don’t want to mess around with the terminal, I’m sure many of these commands will soon find their way into an updated version of <a href="http://secrets.blacktree.com/">Secrets</a>, which is a GUI preference pane for configuring this type of behavior.</p>
<h2 id="the_roundup">The roundup</h2>
<ul>
<li><strong>Animations.</strong> There are a lot of new <a href="http://arstechnica.com/apple/reviews/2011/07/mac-os-x-10-7.ars/4#animation">animations</a> in Lion. New windows will warp into existence from a single point on the screen; email replies will fold their way out of threaded conversations; and desktops will go swishing by as you move from space to space. There’s at least two of these you can put an end to right now if you want:
<ul>
<li>Disable Mail Reply animations: “defaults write com.apple.Mail DisableReplyAnimations -bool YES”</li>
<li>Disable New Window animations: “defaults write NSGlobalDomain NSAutomaticWindowAnimationsEnabled -bool NO”</li>
</ul>
</li>
<li><strong>Character picker. </strong>If you’ve ever been frustrated by hunting around in the character viewer for accented characters like the “è” or the “ë” then you probably want to just leave this setting alone. If however, if you’d rather be able to hold down a key and just have it automatically repeat, like it used to, then this defaults write is for you.
<ul>
<li>Disable the character picker: “defaults write -g ApplePressAndHoldEnabled -bool NO”</li>
</ul>
</li>
<li><strong>Window restore. </strong>Want to keep applications like Preview or QuickTime from restoring old windows that happened to be hanging around the last time you quit? Just switch out the name &#8220;Preview&#8221; in the command below to target other applications.
<ul>
<li>Disable window restore: “defaults write com.apple.Preview NSQuitAlwaysKeepsWindows -bool NO”</li>
</ul>
</li>
<li><strong>Bookmarks bar.</strong> You can get rid of both the Reading List icon and the Top Sites icon with this quick defaults write command:
<ul>
<li>Clean out icons from Safari’s bookmarks bar: “defaults write com.apple.Safari ProxiesInBookmarksBar ‘()’”</li>
</ul>
</li>
<li><strong>Save sheet shortcuts.</strong> Lion changes around the default <a href="http://mattgemmell.com/2011/07/21/save-sheet-shortcuts-in-lion">save sheet shortcuts</a> for a little added safety. If you’ve got a lot of muscle memory devoted to “Command-D” as the shortcut for “Don’t Save,” you can bring it back if you want — though to be honest, with “D” and “S” being so close together, I prefer the new settings.
<ul>
<li>Revert save sheet shortcut: “defaults write NSGlobalDomain NSSavePanelStandardDesktopShortcutOnly -bool YES”</li>
</ul>
</li>
<li><strong>iOS spell check pop-up.</strong> Part of the overall “iOS-ification” effort in Lion was to bring over those helpful but sometimes annoying little spell correction pop-ups you get as you type. The autocorrect can be enabled on a document by document basis with a right-click in “Spelling and Grammar,” but if you just want to kill it off altogether, you can.
<ul>
<li>Disable the iOS-style spell correct: “defaults write NSGlobalDomain NSAutomaticSpellingCorrectionEnabled -bool NO”</li>
</ul>
</li>
<li><strong>~/Library reveal.</strong> This last one isn&#8217;t technically a defaults command, but it’s too good to leave out. By default in Lion, user libraries are hidden. You can still navigate to the user library by holding down the “option key” while in the Go menu in the Finder, but if you want to restore ~/Library back to it’s proper place, just crack open the terminal and enter in the command below.
<ul>
<li>Restore ~/Library visibility: “chflags nohidden ~/Library”</li>
</ul>
</li>
</ul>
<p>I’m sure more hidden commands will surface as folks begin to settle into the new OS. I grabbed as many as I could find floating around, but if you’ve got some additional ones you’d like to share, please do so in the comments.</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=384229+how-to-undo-a-lot-of-lions-little-changes-using-terminal&utm_content=bryanschuetz">Sign up for a free trial</a>.</p><ul><li><a href="http://pro.gigaom.com/2010/09/how-to-market-your-iphone-app-a-developers-guide/?utm_source=apple&utm_medium=editorial&utm_campaign=auto3&utm_term=384229+how-to-undo-a-lot-of-lions-little-changes-using-terminal&utm_content=bryanschuetz">How to Market Your iPhone App: A Developer&#8217;s&nbsp;Guide</a></li><li><a href="?utm_source=apple&utm_medium=editorial&utm_campaign=auto3&utm_term=384229+how-to-undo-a-lot-of-lions-little-changes-using-terminal&utm_content=bryanschuetz"></a></li><li><a href="http://pro.gigaom.com/2009/07/virtual-worlds-trends-and-opportunities/?utm_source=apple&utm_medium=editorial&utm_campaign=auto3&utm_term=384229+how-to-undo-a-lot-of-lions-little-changes-using-terminal&utm_content=bryanschuetz">Virtual Worlds: Trends and&nbsp;Opportunities</a></li></ul><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gigaom.com&amp;blog=14960843&amp;post=384229&amp;subd=gigaom2&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gigaom.com/apple/how-to-undo-a-lot-of-lions-little-changes-using-terminal/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	 <go:thumbnail>http://gigaom2.files.wordpress.com/2011/04/terminal-feature.jpg?w=130</go:thumbnail> 
		<media:thumbnail url="http://gigaom2.files.wordpress.com/2011/04/terminal-feature.jpg?w=210" />
		<media:content url="http://gigaom2.files.wordpress.com/2011/04/terminal-feature.jpg?w=210" medium="image">
			<media:title type="html">terminal-feature</media:title>
		</media:content>

		<media:content url="http://1.gravatar.com/avatar/b1f0aaa5169b785bc9f833a12aba5b3c?s=96&#38;d=retro&#38;r=PG" medium="image">
			<media:title type="html">bryanschuetz</media:title>
		</media:content>

		<media:content url="http://gigaom2.files.wordpress.com/2011/07/terminal.jpg" medium="image">
			<media:title type="html">terminal</media:title>
		</media:content>
	</item>
		<item>
		<title>Ten &#8216;Easter Eggs&#8217; to Find in Your Mac OS and Applications</title>
		<link>http://gigaom.com/apple/ten-easter-eggs-to-find-in-your-mac-os-and-applications/</link>
		<comments>http://gigaom.com/apple/ten-easter-eggs-to-find-in-your-mac-os-and-applications/#comments</comments>
		<pubDate>Fri, 22 Apr 2011 19:00:24 +0000</pubDate>
		<dc:creator>Josh Sunshine</dc:creator>
				<category><![CDATA[desktop computing]]></category>
		<category><![CDATA[hidden preferences]]></category>
		<category><![CDATA[How-To]]></category>
		<category><![CDATA[ktunes]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[os x]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[Twitter]]></category>

		<guid isPermaLink="false">http://gigaom.com/?p=334295</guid>
		<description><![CDATA[While this week many people are searching for Easter Eggs or the Afikoman, here are 10 hidden settings you can find in your Mac apps and OS X. These are all small changes you can make that make using the applications and the system slightly better.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gigaom.com&amp;blog=14960843&amp;post=334295&amp;subd=gigaom2&amp;ref=&amp;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=604" alt=""   class="alignright size-full wp-image-179833" />While this week many people are searching for Easter Eggs or the Afikoman, here are 10 hidden settings you can find in your Mac apps and OS X. These are all small changes you can make that make using the applications and the system slightly better.</p>
<p>First off, you&#8217;ll need to open up the Terminal application (<strong>/Applications &gt; Utilities &gt; Terminal</strong>), since these &#8216;Easter Eggs&#8217; have to be run from the command line. Once you&#8217;ve got that open, you can copy and paste the commands below. Each command is one line only, and you should press Return after pasting in each command. To turn these off after, replace YES with NO (or vice-versa) and repeat the command.</p>
<h2>Allow Dashboard Widgets to be Dragged Onto the Desktop</h2>
<p>Sometimes it&#8217;s useful to keep one of you Dashboard widgets around after you close Dashboard, so paste the following into Terminal:</p>
<pre><code>defaults write com.apple.dashboard devmode YES &amp;&amp; killall Dock</code></pre>
<p>To use this ability, click and hold a widget and then close Dashboard using your keyboard hotkey (usually F4 on newer Macs).</p>
<h2>Stop Twitter&#8217;s Compose Window Floating</h2>
<p>The compose window in Twitter for Mac floats above all other windows at all times, which can get annoying. To stop it floating, paste this into Terminal, then restart Twitter for Mac.</p>
<pre><code>defaults write com.twitter.twitter-mac NormalComposeWindowLevel -bool NO</code></pre>
<h2>Allow Escape to Close Twitter Compose Window</h2>
<p>Another one for Twitter for Mac, this allows you to press Esc to close the new tweet window. Once again, paste and then restart Twitter for Mac.</p>
<pre><code>defaults write com.twitter.twitter-mac ESCClosesComposeWindow -bool YES</code></pre>
<h2>Show Hidden Files in the Finder</h2>
<p>There are some files which the Finder keeps hidden, but you might want to be able to see them sometimes, such as .htaccess files for web developers. To show hidden files, paste this into Terminal:</p>
<pre><code>defaults write com.apple.finder AppleShowAllFiles -bool YES &amp;&amp; killall Finder</code></pre>
<p>Your hidden files should now show up.</p>
<h2>Disable the &#8216;Unexpectedly Quit&#8217; Dialog</h2>
<p>When an application crashes, you&#8217;ll see a dialog telling you the application quit unexpectedly. This can get annoying if it happens often, so you can disable that dialog using</p>
<pre><code>defaults write com.apple.CrashReporter DialogType none</code></pre>
<p>You may need to restart your computer for changes to take effect. To turn this back on again, replace &#8216;none&#8217; with &#8216;prompt&#8217;.</p>
<h2>Enable &#8216;X-Ray Folders&#8217; in QuickLook</h2>
<p>The QuickLook feature of Finder is great, but if you use it on a folder, you won&#8217;t see anything except a folder icon. Using this hidden setting, you&#8217;ll be able to see the contents of the folder when you use QuickLook.</p>
<pre><code>defaults write com.apple.finder QLEnableXRayFolders 1 &amp;&amp; killall Finder</code></pre>
<p>To turn off, replace the &#8217;1&#8242; with a &#8217;0&#8242;.</p>
<h2>Show the File Path in the Finder Window Title</h2>
<p>It&#8217;s easy to get lost in your file system, so enable this to show the path of the current folder in the title bar of your Finder window. That should make it easier to remember where you are.</p>
<pre><code>defaults write com.apple.finder _FXShowPosixPathInTitle -bool YES &amp;&amp; killall Finder</code></pre>
<h2>Disable iTunes Arrow Links</h2>
<p>You&#8217;ll often see tips on how to change the arrow links in iTunes&#8217; list view to go to your library instead of the store, but what about turning them off altogether? Paste this command and restart iTunes.</p>
<pre><code>defaults write com.apple.finder _FXShowPosixPathInTitle -bool YES</code></pre>
<h2>Stop the Help Window From Floating</h2>
<p>Another troublesome floating window is the Help window which appears when you click Help in most applications. To stop it floating, use</p>
<pre><code>defaults write com.apple.helpviewer NormalWindow -boolean yes</code></pre>
<h2>Change the Desktop Picture on the Login Screen</h2>
<p>If you don&#8217;t like the default image shown behind the login screen, you can change it to any other image using the following command. Just add the path of the image <strong>after</strong> the word &#8216;path&#8217;.</p>
<pre><code>defaults write /Library/Preferences/com.apple.loginwindow DesktopPicture -path</code></pre>
<h2>Bonus: Control Even More Hidden Settings Using Secrets</h2>
<p>Secrets is a preference pane which allows you to control even more hidden settings in Mac applications using a friendly interface, rather than having to use Terminal. You can download it <a href="http://secrets.blacktree.com/">here</a>, and once installed you&#8217;ll find it at the bottom of System Preferences.</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=334295+ten-easter-eggs-to-find-in-your-mac-os-and-applications&utm_content=jobbogamer">Sign up for a free trial</a>.</p><ul><li><a href="?utm_source=apple&utm_medium=editorial&utm_campaign=auto3&utm_term=334295+ten-easter-eggs-to-find-in-your-mac-os-and-applications&utm_content=jobbogamer"></a></li><li><a href="http://pro.gigaom.com/2011/04/a-media-tablet-forecast-2011-2015/?utm_source=apple&utm_medium=editorial&utm_campaign=auto3&utm_term=334295+ten-easter-eggs-to-find-in-your-mac-os-and-applications&utm_content=jobbogamer">A Media Tablet Forecast, 2011 &#8211;&nbsp;2015</a></li><li><a href="http://pro.gigaom.com/2011/04/finding-the-value-in-social-media-data/?utm_source=apple&utm_medium=editorial&utm_campaign=auto3&utm_term=334295+ten-easter-eggs-to-find-in-your-mac-os-and-applications&utm_content=jobbogamer">Finding the Value in Social Media&nbsp;Data</a></li></ul><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gigaom.com&amp;blog=14960843&amp;post=334295&amp;subd=gigaom2&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gigaom.com/apple/ten-easter-eggs-to-find-in-your-mac-os-and-applications/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
	 <go:thumbnail>http://gigaom2.files.wordpress.com/2011/04/terminal-feature.jpg?w=130</go:thumbnail> 
		<media:thumbnail url="http://gigaom2.files.wordpress.com/2011/04/terminal-feature.jpg?w=210" />
		<media:content url="http://gigaom2.files.wordpress.com/2011/04/terminal-feature.jpg?w=210" medium="image">
			<media:title type="html">terminal-feature</media:title>
		</media:content>

		<media:content url="http://0.gravatar.com/avatar/8495aa87a8736f68592565c05a1afb1f?s=96&#38;d=retro&#38;r=PG" medium="image">
			<media:title type="html">Jobbogamer</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>
	</item>
		<item>
		<title>Xmarks Shutting Down Soon: Here&#8217;s an Alternative</title>
		<link>http://gigaom.com/apple/xmarks-shutting-down-soon-heres-an-alternative-2/</link>
		<comments>http://gigaom.com/apple/xmarks-shutting-down-soon-heres-an-alternative-2/#comments</comments>
		<pubDate>Tue, 05 Oct 2010 15:00:18 +0000</pubDate>
		<dc:creator>Josh Sunshine</dc:creator>
				<category><![CDATA[@CNN]]></category>
		<category><![CDATA[@SYN]]></category>
		<category><![CDATA[How-To]]></category>
		<category><![CDATA[news]]></category>
		<category><![CDATA[NYT Internet]]></category>
		<category><![CDATA[Bookmarks]]></category>
		<category><![CDATA[Dropbox]]></category>
		<category><![CDATA[syncing]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[xmarks]]></category>

		<guid isPermaLink="false">http://theappleblog.com/?p=52816</guid>
		<description><![CDATA[Bookmark syncing service Xmarks is shutting down for good on Jan. 10, 2011, meaning that all syncs will cease, and all backups will be lost. At least the early notice means we have time to look for alternatives, which for Safari users won't be that easy.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gigaom.com&amp;blog=14960843&amp;post=174639&amp;subd=gigaom2&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img title="xmarks-feature" src="http://gigapple.files.wordpress.com/2010/10/xmarks-feature1.png?w=278&#038;h=185" alt="" width="278" height="185" class="alignright size-large wp-image-52856">Way back in March I <a href="http://gigaom.com/apple/quick-tip-keep-your-bookmarks-in-sync/">told you</a> about Xmarks, the bookmark sync and backup service. Unfortunately, the developers <a href="http://blog.xmarks.com/?p=1886">have announced</a> that, due to loss of money and having found no interested buyers, it’s shutting down for good on Jan. 10, 2011, meaning all syncs will cease, and all backups will be lost. At least they were considerate enough to give a couple of months’ notice before pulling the plug; it gives everyone time to move over to alternative services.</p>
<p>The Xmarks developers <a href="http://www.xmarks.com/about/shutdown">offer alternatives</a>, but the only one they can suggest for Safari users is Apple’s  MobileMe service. As MobileMe costs $99 a year, subscribing just for the sake of syncing your Safari bookmarks is a bit costly. If you use any other browser, there are free alternatives such as Firefox Sync and Chrome Sync.</p>
<p>I’ve seen some weird and wacky ways of syncing Safari bookmarks, including emailing yourself every time you change your bookmarks, or simply “remember which bookmarks you’ve added and add them on the other machine(s),” neither of which are helpful. I’ve discovered a much more useful method involving Dropbox. It’s not as automatic as Xmarks was, but it gets the job done.</p>
<p>There are two ways of doing this: one uses a free download called SymbolicLinker, and the other uses Terminal.app. I’ll start by going through the steps for using SymbolicLinker, then I’ll talk about the Terminal method.</p>
<h3>Using SymbolicLinker</h3>
<ol><li><strong>Download SymbolicLinker</strong>. It can be found <a href="http://www.macupdate.com/info.php/id/10433/symboliclinker">on MacUpdate</a>. It’s not an application, but a Service you can install, which adds a new option when you right-click an item in the Finder. To install it, simply double-click the SymbolicLinker.service icon.</li>
<li><strong>Get Dropbox</strong>. You can <a href="http://www.dropbox.com/referrals/NTEyNDA5NjQ5">sign up for free</a>. A free Dropbox account gives you 2GB of space. Obviously you can skip this step if you already have Dropbox.</li>
<li><strong>Quit Safari</strong>. Safari will get confused if you start messing around with its files while it’s still running.</li>
<li><strong>Create a ‘Bookmarks’ folder in Dropbox</strong>. It doesn’t matter what you call it, as long as you remember that it’s for your bookmarks.</li>
<li><strong>Move the Bookmarks file from Safari to Dropbox</strong>. The file is called Bookmarks.plist and is located in <em>[your Home folder]&gt;Library&gt;Safari</em>. Make sure you move it rather than copy it over.</li>
<li><strong>Create a symbolic link to the Bookmarks file</strong>. To do this, right-click Bookmarks.plist and choose <strong>Make Symbolic Link</strong>, which is the new option added by SymbolicLinker. Now drag the new file, ‘Bookmarks.plist symlink’, back to where you found the original file. Rename it back to ‘Bookmarks.plist’.</li>
</ol><p><img title="SymbolicLinker" src="http://gigapple.files.wordpress.com/2010/10/symboliclinker.png?w=604" alt=""   class="aligncenter size-full wp-image-52822">You can now re-open Safari to check that all your bookmarks are still there and that they work properly. Next, repeat these steps on the other computers you want to keep in sync:</p>
<ol><li><strong>Download and install SymbolicLinker</strong>. Do this exactly the same way as before.</li>
<li><strong>Sync the computer with Dropbox</strong>. Make sure the new Bookmarks.plist file is completely downloaded before continuing.</li>
<li><strong>Quit Safari</strong>.</li>
<li><strong>Create a symbolic link to the Bookmarks.plist file in Dropbox. </strong>Delete the Bookmarks.plist file in <em>Library&gt;Safari</em> and replace it with the symbolic link, again renaming it to simply ‘Bookmarks.plist’.</li>
<li><strong>Reopen Safari and check it works. </strong>It should work first time, but if it doesn’t, retry the steps, and make sure Bookmarks.plist has a capital ‘B’.</li>
</ol><h3>The Terminal Method</h3>
<p>Using Terminal (<em>Applications&gt;Utilities&gt;Terminal</em>) achieves exactly the same thing, using the same method, but just doesn’t involve any downloads. For this example, I’m going to put the Bookmarks file into <em>Dropbox&gt;Safari</em>, but it works for any folder. Just switch out the file paths in the Terminal.</p>
<ol><li><strong>Create your folder in Dropbox. </strong>Again, doesn’t matter what you call it.</li>
<li><strong>Move the Bookmarks file into Dropbox. </strong>Once again, you need to make sure that you’re moving the file and not copying it, otherwise you get an error saying that the file already exists.</li>
<li><strong>Navigate to the Safari folder using Terminal. </strong>This can be done by typing (or copying and pasting):</li>
<p><code>cd ~/Library/Safari</code></p>
<li><strong>Create the symbolic link. </strong>Do this by entering the following into Terminal:</li>
<p><code>ln -s ~/Dropbox/Safari/Bookmarks.plist Bookmarks.plist</code></p>
<li><strong>Restart Safari.</strong></li>
</ol><h3>The Problem</h3>
<p>Unfortunately, the problem with changing the Bookmarks.plist directly is you have to quit and reopen Safari in order to update the bookmarks on each machine. It’s still definitely a lot easier than remembering the bookmarks you’ve got and adding them to your other machines manually. Also, it doesn’t cost $99 a year.</p>
<p>I’m sure that there are a whole bunch of other methods, perhaps using Automator or maybe another service similar to Xmarks, which accomplish the same task. If you know about any of those, please share below.</p>
<p><strong>Related content from GigaOM Pro (sub req’d):</strong></p>
<ul><li><a href="http://pro.gigaom.com/2010/07/html5s-a-game-changer-for-web-apps/?utm_source=apple&amp;utm_medium=editorial&amp;utm_content=jobbogamer&amp;utm_campaign=intext&amp;utm_term=174639+xmarks-shutting-down-soon-heres-an-alternative-2">HTML5’s a Game-Changer for Web Apps</a></li>
<li><a href="http://pro.gigaom.com/2009/11/what-does-the-future-hold-for-browsers/?utm_source=apple&amp;utm_medium=editorial&amp;utm_content=jobbogamer&amp;utm_campaign=intext&amp;utm_term=174639+xmarks-shutting-down-soon-heres-an-alternative-2">What Does the Future Hold For Browsers?</a></li>
<li><a href="http://pro.gigaom.com/2010/09/how-to-manage-consumer-grade-collaborative-tools-in-the-workplace/?utm_source=apple&amp;utm_medium=editorial&amp;utm_content=jobbogamer&amp;utm_campaign=intext&amp;utm_term=174639+xmarks-shutting-down-soon-heres-an-alternative-2">How to Manage Consumer-Grade Collaborative Tools in the Workplace</a></li>
</ul>
<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gigaom.com&amp;blog=14960843&amp;post=174639&amp;subd=gigaom2&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gigaom.com/apple/xmarks-shutting-down-soon-heres-an-alternative-2/feed/</wfw:commentRss>
		<slash:comments>18</slash:comments>
	 <go:thumbnail>http://gigapple.files.wordpress.com/2010/10/xmarks-feature.png?w=130</go:thumbnail> 
		<media:thumbnail url="http://gigapple.files.wordpress.com/2010/10/xmarks-feature.png?w=210" />
		<media:content url="http://gigapple.files.wordpress.com/2010/10/xmarks-feature.png?w=210" medium="image">
			<media:title type="html">xmarks-feature</media:title>
		</media:content>

		<media:content url="http://0.gravatar.com/avatar/8495aa87a8736f68592565c05a1afb1f?s=96&#38;d=retro&#38;r=PG" medium="image">
			<media:title type="html">Jobbogamer</media:title>
		</media:content>

		<media:content url="http://gigapple.files.wordpress.com/2010/10/xmarks-feature1.png?w=604" medium="image">
			<media:title type="html">xmarks-feature</media:title>
		</media:content>

		<media:content url="http://gigapple.files.wordpress.com/2010/10/symboliclinker.png" medium="image">
			<media:title type="html">SymbolicLinker</media:title>
		</media:content>
	</item>
		<item>
		<title>Quick Tip: Make iTunes 10 Window Controls Horizontal</title>
		<link>http://gigaom.com/apple/quick-tip-make-itunes-10-window-controls-horizontal/</link>
		<comments>http://gigaom.com/apple/quick-tip-make-itunes-10-window-controls-horizontal/#comments</comments>
		<pubDate>Thu, 02 Sep 2010 21:34:31 +0000</pubDate>
		<dc:creator>Josh Sunshine</dc:creator>
				<category><![CDATA[How-To]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[itunes 10]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[Window Controls]]></category>

		<guid isPermaLink="false">http://theappleblog.com/?p=51066</guid>
		<description><![CDATA[iTunes 10 was released yesterday and brought with it a few UI overhauls. There currently isn't a way to bring back the colored icons in the sidebar, but there sure is a way to get the window controls back to their former positions.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gigaom.com&amp;blog=14960843&amp;post=174536&amp;subd=gigaom2&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img  title="iTunes 10 Window Controls" src="http://gigapple.files.wordpress.com/2010/09/itunes-10-window-controls.png?w=604" alt=""   class="alignright size-full wp-image-51071" />iTunes 10 was released yesterday and brought with it a few UI overhauls. The loss of color in the sidebar for one, along with the change of orientation of the window controls at the top of the window. There currently isn&#8217;t a way to bring back the colored icons in the sidebar, but there sure is a way to get the window controls back to their former positions.</p>
<p>It&#8217;s simple enough, and requires just one line to be entered into Terminal. Quit iTunes, wait for it to close completely, then fire up Terminal, which can be found under <strong>Applications → Utilities</strong>. Either type or paste the following code into the Terminal window and hit Return:<br />
<code><br />
defaults write com.apple.iTunes full-window -1</code></p>
<p>Now when you reopen iTunes, the &#8216;traffic light&#8217; controls should be back along the top of the window, side-by-side. It does a lot for keeping the look of OS X consistent across applications. Of course, perhaps this is Apple&#8217;s way of telling us that in the next version of the Mac operating system, <strong>all</strong> the windows are going to be laid out like this.</p>
<p><img  title="iTunes 10 Repositioned Controls" src="http://gigapple.files.wordpress.com/2010/09/itunes-10-repositioned-controls.png?w=604" alt=""   class="aligncenter size-full wp-image-51072" /></p>
<p>Should you ever want to restore iTunes 10&#8242;s default setting, and put the controls back down the side, enter this code into Terminal (again with iTunes closed):<br />
<code><br />
defaults write com.apple.iTunes full-window -0</code></p>
<p>Now we have a fix for the window controls, all we need is a setting to bring back the color in the sidebar. If you know a way, shout out in the comments!</p>
<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gigaom.com&amp;blog=14960843&amp;post=174536&amp;subd=gigaom2&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gigaom.com/apple/quick-tip-make-itunes-10-window-controls-horizontal/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
	 <go:thumbnail>http://gigapple.files.wordpress.com/2010/09/itunes_window_thumb.png?w=130</go:thumbnail> 
		<media:thumbnail url="http://gigapple.files.wordpress.com/2010/09/itunes_window_thumb.png?w=210" />
		<media:content url="http://gigapple.files.wordpress.com/2010/09/itunes_window_thumb.png?w=210" medium="image">
			<media:title type="html">itunes_window_thumb</media:title>
		</media:content>

		<media:content url="http://0.gravatar.com/avatar/8495aa87a8736f68592565c05a1afb1f?s=96&#38;d=retro&#38;r=PG" medium="image">
			<media:title type="html">Jobbogamer</media:title>
		</media:content>

		<media:content url="http://gigapple.files.wordpress.com/2010/09/itunes-10-window-controls.png" medium="image">
			<media:title type="html">iTunes 10 Window Controls</media:title>
		</media:content>

		<media:content url="http://gigapple.files.wordpress.com/2010/09/itunes-10-repositioned-controls.png" medium="image">
			<media:title type="html">iTunes 10 Repositioned Controls</media:title>
		</media:content>
	</item>
		<item>
		<title>How-To: Use SSH to Investigate Folder Sizes</title>
		<link>http://gigaom.com/apple/how-to-use-ssh-to-investigate-folder-sizes/</link>
		<comments>http://gigaom.com/apple/how-to-use-ssh-to-investigate-folder-sizes/#comments</comments>
		<pubDate>Tue, 04 May 2010 15:14:01 +0000</pubDate>
		<dc:creator>Andrew Flocchini</dc:creator>
				<category><![CDATA[How-To]]></category>
		<category><![CDATA[apple remote desktop]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[terminal]]></category>

		<guid isPermaLink="false">http://theappleblog.com/?p=45109</guid>
		<description><![CDATA[Users can let their Home folder get out of hand and slowly kill any remaining hard drive space. I use Apple Remote Desktop if I need to find out who's using up too much space with their Home folder and SSH works perfectly for this.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gigaom.com&amp;blog=14960843&amp;post=174201&amp;subd=gigaom2&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img  title="Terminal icon" src="http://juicebox.theappleblog.com/e/2a1da50d57f84977.png/l" alt="" width="240" height="240" class=" alignleft" />Sometimes users can let their Home folder get out of hand and slowly kill any remaining hard drive space. I like to use <strong>Apple Remote Desktop</strong> if I need to find out who&#8217;s using up too much space with their Home folder. I don&#8217;t want to just remote in if someone&#8217;s working on the machine so SSH works perfectly for this.</p>
<h2>Enable SSH</h2>
<p>If <strong>SSH</strong> isn&#8217;t enabled on your target machine, send this command through <strong>Apple Remote Desktop</strong> as root.</p>
<p><code>/sbin/service ssh start</code></p>
<p>This will enable <strong>SSH</strong> until the machine is rebooted.</p>
<p><img  title="ard_start_ssh_service" src="http://gigapple.files.wordpress.com/2010/05/screen-shot-2010-05-03-at-2-49-50-pm1.png?w=590&#038;h=519" alt="" width="590" height="519" class=" alignleft" /></p>
<h2>Start an SSH session</h2>
<p>Open up <strong>Terminal</strong> and make a connection to the target machine using its IP address.</p>
<p><code>ssh 10.0.0.1</code></p>
<p><img  title="start_ssh_connection" src="http://gigapple.files.wordpress.com/2010/05/screen-shot-2010-05-03-at-2-53-22-pm1.png?w=423&#038;h=194" alt="" width="423" height="194" class=" alignleft" /></p>
<p>If you&#8217;re in an Active Directory environment like me, enter the password that matches your current username you&#8217;re logged in with. Otherwise your SSH command will need to pass along a username that exists on the target computer. Something similar to the following.</p>
<p><code>ssh 10.0.0.1 -l admin</code></p>
<h2>Explore the hard drive</h2>
<p>Once you&#8217;ve successfully made your connection, check out the disk space with the following command.</p>
<p><code>df</code></p>
<p>For our situation, the <strong>disk0s2</strong> is what we&#8217;re looking at. The HDD is getting pretty full.</p>
<p>In my situation, I know that the most space is probably being wasted in the Users directories so lets head there and get an idea of what&#8217;s going on.</p>
<p><code>cd /Users/</code></p>
<p>Now let&#8217;s run the <strong>DU</strong> command and see what users have the biggest folder.</p>
<p><code>sudo du -sh *</code></p>
<p style="text-align: center;"><img  title="ssh_du_command" src="http://gigapple.files.wordpress.com/2010/05/screen-shot-2010-05-03-at-3-00-25-pm2.png?w=610&#038;h=189" alt="" width="610" height="189" class=" alignleft" /></p>
<p>You will be prompted for your password, and it may seem to go slowly, but you will get a nice list showing you the size of everyone&#8217;s Home folder.</p>
<p style="text-align: left;"><img  title="ssh_user_folder_sizes" src="http://gigapple.files.wordpress.com/2010/05/screen-shot-2010-05-03-at-3-05-59-pm.png?w=351&#038;h=614" alt="" width="351" height="614" class=" alignleft" />Looks like we&#8217;ve found some Home folders that need to be purged. This is also easy to do using Finder but sometimes you can&#8217;t disturb the machine and Terminal is perfect for that.</p>
<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gigaom.com&amp;blog=14960843&amp;post=174201&amp;subd=gigaom2&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gigaom.com/apple/how-to-use-ssh-to-investigate-folder-sizes/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	 <go:thumbnail>http://gigapple.files.wordpress.com/2010/05/terminal_thumb.jpg?w=130</go:thumbnail> 
		<media:thumbnail url="http://gigapple.files.wordpress.com/2010/05/terminal_thumb.jpg?w=210" />
		<media:content url="http://gigapple.files.wordpress.com/2010/05/terminal_thumb.jpg?w=210" medium="image">
			<media:title type="html">terminal_thumb</media:title>
		</media:content>

		<media:content url="http://1.gravatar.com/avatar/56e04118e8fb1fab8caa42294f7590ad?s=96&#38;d=retro&#38;r=PG" medium="image">
			<media:title type="html">Andrew Flocchini</media:title>
		</media:content>

		<media:content url="http://juicebox.theappleblog.com/e/2a1da50d57f84977.png/l" medium="image">
			<media:title type="html">Terminal icon</media:title>
		</media:content>

		<media:content url="http://gigapple.files.wordpress.com/2010/05/screen-shot-2010-05-03-at-2-49-50-pm1.png" medium="image">
			<media:title type="html">ard_start_ssh_service</media:title>
		</media:content>

		<media:content url="http://gigapple.files.wordpress.com/2010/05/screen-shot-2010-05-03-at-2-53-22-pm1.png" medium="image">
			<media:title type="html">start_ssh_connection</media:title>
		</media:content>

		<media:content url="http://gigapple.files.wordpress.com/2010/05/screen-shot-2010-05-03-at-3-00-25-pm2.png" medium="image">
			<media:title type="html">ssh_du_command</media:title>
		</media:content>

		<media:content url="http://gigapple.files.wordpress.com/2010/05/screen-shot-2010-05-03-at-3-05-59-pm.png" medium="image">
			<media:title type="html">ssh_user_folder_sizes</media:title>
		</media:content>
	</item>
		<item>
		<title>Dig Into Unix: Sed and Awk</title>
		<link>http://gigaom.com/apple/dig-into-unix-sed-and-awk/</link>
		<comments>http://gigaom.com/apple/dig-into-unix-sed-and-awk/#comments</comments>
		<pubDate>Tue, 11 Aug 2009 20:37:46 +0000</pubDate>
		<dc:creator>Jon Buys</dc:creator>
				<category><![CDATA[Walkthroughs]]></category>
		<category><![CDATA[awk]]></category>
		<category><![CDATA[dig into unix]]></category>
		<category><![CDATA[sed]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://theappleblog.com/?p=29831</guid>
		<description><![CDATA[Time again to pop a shell and dig into the deep, geeky Unix internals of OS X with Dig Into Unix. Today we are going to look at two top-shelf power tools for text editing: sed and awk. Sed is a Stream EDitor, and if you [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gigaom.com&amp;blog=14960843&amp;post=173173&amp;subd=gigaom2&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img  title="Terminal" src="http://gigapple.files.wordpress.com/2009/05/terminal.png?w=133&#038;h=118" alt="Terminal" width="133" height="118" class=" alignleft" /></p>
<p class="excerpt">Time again to pop a shell and dig into the deep, geeky Unix internals of OS X with <a href="http://theappleblog.com/tag/dig-into-unix/">Dig Into Unix</a>. Today we are going to look at two top-shelf power tools for text editing: <a href="http://developer.apple.com/documentation/Darwin/Reference/Manpages/man1/sed.1.html">sed</a> and <a href="http://developer.apple.com/documentation/Darwin/Reference/Manpages/man1/awk.1.html">awk</a>.</p>
<p>Sed is a Stream EDitor, and if you recall our <a href="http://gigaom.com/apple/dig-into-unix-standard-streams/">previous</a> Dig Into Unix installment concerning standard streams, you&#8217;ll understand that the streams we are talking about are actually just text from one source or another. Sed&#8217;s bread and butter is text search and replace, very similary to the &#8220;Edit&#8221; and &#8220;Find&#8230;&#8221; functions in TextEdit and many other GUI text editors. Unlike those text editors though, sed, by default, will write its output to the screen, or stdout. <span id="more-173173"></span></p>
<p>As an example, try some basic operations on this string of text:<br />
<code>The quick brown fox jumped over the lazy dog's back.</code></p>
<p>Save the string of text as a file named test.txt, and type this into the Terminal:<br />
<code>sed s/quick/slow/g test.txt</code></p>
<p>The fox is now slow on the screen, but not changed in the file itself. To follow the stream, the text came from the file, through sed, and to the screeen. The best set of examples I&#8217;ve found for getting right into sed and starting to play with it is the collection of <a href="http://sed.sourceforge.net/sed1line.txt">sed one liners</a> hosted at Sourceforge.</p>
<p>Personally, I use sed when I&#8217;ve got a large number of configuration files that need to be edited. For example, it might be decided that we do not need our <a href="http://www.nagios.org/">Nagios</a> monitoring system alerting on the a certain statistic. I could go into 100 different files and perform the same action on all of them, or I could rely on a simple shell script and sed to do it for me.</p>
<p><code><br />
for each in `ls *.cfg`; do<br />
mv $each $each.bak #Safety First!<br />
sed '30,35s/^/#/g' $each.bak &gt; $each<br />
done<br />
</code></p>
<p>This will plow through all of the config files in a certain directory and add a # sign at the beginning of lines 30 through 35, commenting those lines out. Then I can restart Nagios, and if all goes well, delete all of the .bak files created as backups by the script.</p>
<p>While sed operates on lines and regular expressions (the subject of a future Dig Into Unix article!), awk works with <em>fields</em>. When given a stream of text, either from a text file or piped in from another application, awk can manipulate the text and rearrange the words. By default, awk separates the text fields by a space character, but you can use any other character you&#8217;d like.</p>
<p>Like sed, awk also has a great collection of <a href="http://www.pement.org/awk/awk1line.txt">one liners</a>, this collection here is a great resource collected by Eric Pement. In my day to day activities, I call on awk when I want to format text for a report or to be input into another application.</p>
<p>To use our quick brown fox example again, we can print only the fourth, third, and second words, in reverse order, with this command:<br />
<code>awk '{ print $4, $3, $2 }' test</code></p>
<p>That will print out &#8220;fox brown quick&#8221;. Not very practical or useful. Something more practical might be to manipulate a list of comma separated values. Using the &#8220;-F&#8221; flag in awk, you can tell awk to separate it&#8217;s fields based on the comma, as in:<br />
<code>awk -F, '{ print $1 }' test</code></p>
<p>Since there are no commas in the test file, this will print the entire string of text. So, we could run this command to take care of that:<br />
<code>sed s/ /,/g test &gt; test2</code></p>
<p>This will use sed to replace all spaces with commas. The backslash is there to escape a special character, so the space is interpreted literally and not as part of a command. Now, you could use awk to manipulate the string of text as needed.<br />
<code>awk -F, '{ print $7, $8, $9, $10, $5, $6, $1, $2, $3, $4 " did" }' test2</code></p>
<p>This article has just barely skimmed the surface of what sed and awk can do. There are some rather hefty books dedicated to the pair, <a title="sed &amp; awk | O'Reilly Media" href="http://oreilly.com/catalog/9781565922259/">this one</a> from O&#8217;Reilly has been on my desk for years now. Awk is an entire programming language, but the point of this series is not to teach the in-depth details, it&#8217;s just to get your feet wet, and maybe, just maybe leave you thirsting for more. The real rub is that everything that sed and awk can do can also be done, at times more efficiently, with the practical extraction and report language&#8230;better known as Perl, which is the subject of a future Dig Into Unix article.</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=173173+dig-into-unix-sed-and-awk&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&utm_medium=editorial&utm_campaign=auto3&utm_term=173173+dig-into-unix-sed-and-awk&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&utm_medium=editorial&utm_campaign=auto3&utm_term=173173+dig-into-unix-sed-and-awk&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&utm_medium=editorial&utm_campaign=auto3&utm_term=173173+dig-into-unix-sed-and-awk&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&amp;blog=14960843&amp;post=173173&amp;subd=gigaom2&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gigaom.com/apple/dig-into-unix-sed-and-awk/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/05/terminal.png" medium="image">
			<media:title type="html">Terminal</media:title>
		</media:content>
	</item>
		<item>
		<title>Tips &amp; Tricks: What’s Your Alias?</title>
		<link>http://gigaom.com/apple/tips-tricks-whats-your-alias/</link>
		<comments>http://gigaom.com/apple/tips-tricks-whats-your-alias/#comments</comments>
		<pubDate>Mon, 13 Jul 2009 21:00:22 +0000</pubDate>
		<dc:creator>Christopher Ryan</dc:creator>
				<category><![CDATA[SYN Feature Enterprise]]></category>
		<category><![CDATA[alias]]></category>
		<category><![CDATA[arrow]]></category>
		<category><![CDATA[link]]></category>
		<category><![CDATA[os x]]></category>
		<category><![CDATA[shortcut]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://theappleblog.com/?p=28268</guid>
		<description><![CDATA[Aliases in Mac OS X are essentially equivalent to shortcuts in the Windows world. They work by creating a link to an original file located somewhere on your Mac or network and maintain the link even if the original is moved or renamed. How to Create [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gigaom.com&amp;blog=14960843&amp;post=173058&amp;subd=gigaom2&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img  title="Front Row Alias Icon Example" src="http://gigapple.files.wordpress.com/2009/07/frontrowaliasiconexample.jpg?w=353&#038;h=197" alt="Front Row Alias Icon Example" width="353" height="197" class=" alignleft" /></p>
<p class="excerpt">Aliases in Mac OS X are essentially equivalent to shortcuts in the Windows world. They work by creating a link to an original file located somewhere on your Mac or network and maintain the link even if the original is moved or renamed.</p>
<h3>How to Create Aliases</h3>
<p>Creating aliases is pretty easy. You can right-click on a file and select “Make Alias” or choose “Make Alias” from the File menu. Viola! You have created an alias, indicated by the shortcut arrow on the icon and the word “alias” appended to the end of the file name.</p>
<p>If you want to create an alias and not have it include “alias” at the end, you can do so by holding down the command and option keys while dragging the desired file to a new location other than the original. <span id="more-173058"></span></p>
<h3>How to Ditch the Arrow</h3>
<p>You can easily tell your aliases apart from your original files by the fact that aliases include a little arrow in their icon. For some, this may be a great reminder, but for others who may be creating collections of aliases for custom stacks in the Dock, or other reasons, the arrows may be annoying. Fortunately, with a little trip to the Terminal, we can solve this dilemma.</p>
<p>Essentially what we are going to do is take the graphic files that apply the arrow “badge” onto the icons and rename them so Mac OS X cannot find them. If your system cannot find the arrows, it cannot apply them to your aliases. <strong>This modification will affect all aliases on your Mac.</strong></p>
<p>The first step is to fire up Terminal (located in the Utilities folder inside your Applications folder). At the command prompt, copy and paste the following line of code.</p>
<p><code>cd /System/Library/CoreServices/CoreTypes.bundle/Contents/Resources</code></p>
<p>This navigates to the location where the alias badge icons are stored. Then copy and paste this next line of code. It will require your administrator password after you execute the command.</p>
<p><code>sudo mv AliasBadgeIcon.icns AliasBadgeIcon_OFF.icns</code></p>
<p>For Terminal newbies, this command invokes “sudo,” which allows you to run powerful commands as another user, in this case, the “root” user. The “mv” command is Unix-talk for “move files.” In the example above, it simply causes the file to be renamed.</p>
<p>To see the changes, you can either restart your computer, or type in the following line of code. (In my tests using the latest builds of Snow Leopard, I actually had to restart the system to see the results).</p>
<p><code>killall Finder</code></p>
<p>To put them back, simply follow the steps again, but when you reach the sudo command, use this line of code.</p>
<p><code>sudo mv AliasBadgeIcon_OFF.icns AliasBadgeIcon.icns</code></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=173058+tips-tricks-whats-your-alias&utm_content=limeology">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&utm_medium=editorial&utm_campaign=auto3&utm_term=173058+tips-tricks-whats-your-alias&utm_content=limeology">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&utm_medium=editorial&utm_campaign=auto3&utm_term=173058+tips-tricks-whats-your-alias&utm_content=limeology">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&utm_medium=editorial&utm_campaign=auto3&utm_term=173058+tips-tricks-whats-your-alias&utm_content=limeology">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&amp;blog=14960843&amp;post=173058&amp;subd=gigaom2&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gigaom.com/apple/tips-tricks-whats-your-alias/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/832459ff6ff50bbfb3a2b901927c1448?s=96&#38;d=retro&#38;r=PG" medium="image">
			<media:title type="html">limeology</media:title>
		</media:content>

		<media:content url="http://gigapple.files.wordpress.com/2009/07/frontrowaliasiconexample.jpg" medium="image">
			<media:title type="html">Front Row Alias Icon Example</media:title>
		</media:content>
	</item>
		<item>
		<title>Dig Into Unix: vi</title>
		<link>http://gigaom.com/apple/dig-into-unix-vi/</link>
		<comments>http://gigaom.com/apple/dig-into-unix-vi/#comments</comments>
		<pubDate>Tue, 23 Jun 2009 19:00:01 +0000</pubDate>
		<dc:creator>Jon Buys</dc:creator>
				<category><![CDATA[SYN Feature Enterprise]]></category>
		<category><![CDATA[dig into unix]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[terminal.app]]></category>
		<category><![CDATA[unix]]></category>
		<category><![CDATA[vim]]></category>

		<guid isPermaLink="false">http://theappleblog.com/?p=25092</guid>
		<description><![CDATA[Continuing our Dig Into Unix series, we&#8217;ve now covered the absolute basics of launching Terminal.app, moving around the file system, looking at files with cat, and learning about commands with man. Now, I&#8217;d like to introduce you to the power of vi. vi (pronounced vee-eye) is [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gigaom.com&amp;blog=14960843&amp;post=172837&amp;subd=gigaom2&amp;ref=&amp;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&#038;h=150" alt="terminal_icon" width="150" height="150" class=" alignleft" /></p>
<p class="excerpt">Continuing our <a href="http://theappleblog.com/tag/dig-into-unix">Dig Into Unix</a> series, we&#8217;ve now covered the absolute basics of launching Terminal.app, moving around the file system, looking at files with <strong>cat</strong>, and learning about commands with <strong>man</strong>. Now, I&#8217;d like to introduce you to the power of <strong>vi</strong>.</p>
<p>vi (pronounced vee-eye) is a text editor for the command line, and was originally written by Bill Joy in 1976. vi is now part of every single Unix system, including OS X. The version included with Leopard is <a href="http://www.vim.org/">vim</a>, which stands for Vi iMproved. One of the major problems that vi has faced over the years is that it has a major learning curve. Every action that you take in vi you do with keyboard combos. Since there are so many actions that you can do, it takes awhile to get used to the different keystrokes, but once you do, they become ingrained in your fingers. From time to time, when typing in some other app, I find myself hitting the escape key followed by <code>jjj</code> or <code>hhh</code> trying to move the curser. <span id="more-172837"></span></p>
<h3>Getting Started</h3>
<p>To get started, open up Terminal.app and type <code>vi</code>. This starts the editor in command mode. Type <code>i</code> to enter insert mode, and then you can begin typing text into the file. Copy the text from this article and paste it into vi, regular CMD-C / CMD-V will work just fine. This will give you something to work with.</p>
<p>Now that you&#8217;ve got some text, it&#8217;d probably be good to save it. Hit the escape key to put the editor back into command mode, and type <code>:w newfile.txt</code>. This will create a text file named <code>newfile.txt</code> in your home directory. Press <code>i</code> again, and you can begin typing, starting where you left off. Press escape again.</p>
<h3>Navigating Lines</h3>
<p>To move to any line of text in vi, you can press the number of the line you want to go to and <code>G</code>. For example, to go to the first line, type <code>1G</code>. If you type that and the characters &#8220;1G&#8221; show up on your screen, you are not in command mode, don&#8217;t forget to press escape first. To get back to the end of the file, you can just press <code>G</code> by itself. That will bring you to the start of the last line in the file.</p>
<ul>
<li>To get to the end of a line, you can press <code>$</code>, and your curser will jump to the end of the line.</li>
<li>To go to the beginning of the line, you press <code>^</code>. Now you can jump around the file.</li>
<li>To move the curser one character at a time, use the four keys <code>h j k</code> and <code>l</code>. <code>h</code> moves one character to the left, <code>j</code> moves one character to the right, <code>k</code> to moves one character up, and <code>l</code> moves one character down.</li>
<li>To open a line below, you can press <code>o</code>, and to open a line above, <code>O</code>.</li>
</ul>
<h3>Configuration File</h3>
<p>These basic text editing commands form the basis of the real strengths of vi, and the reason I continue to use it every day. But to really take advantage of the power of vi, you need to create a configuration file for shortcuts.</p>
<p>Exit out of vi and write the file to disk at the same time by typing <code>:wq!</code> while in command mode. Now, create a new file, and open the file in vi for editing by typing <code>vi .vimrc</code>. The .vimrc file is the configuration file vi reads when starting. The important thing to remember about this configuration file is that you can add any of the commands above into the file, including movement, inserting text, and opening lines, and then map those commands to a keyboard combo. If you are familiar with <a href="http://www.smileonmymac.com/TextExpander/">TextExpander</a>, you&#8217;ll follow right along with this concept, but it&#8217;s even stronger than that.</p>
<p>We are going to create a single line of text in the file that looks like this:<br />
<code>map ,a 1GiJack Doe^MGuy in Charge^MACME Inc.^M111 Main St.^MAnytown, USA </code></p>
<p><code> </code></p>
<p><code>^M^M^M^MDear Sir,^M^M^M^MSincerely,^M^M^MJohn Doe^[10G i</code></p>
<p>The line above has been separated into two lines to fit on the page.  When you see <code>^M</code>, that&#8217;s not really two characters, it&#8217;s only one. It&#8217;s the return key, captured in raw form in the config file for use in generating our commands. To capture it, you press Control-V, followed by return. The esc key is also captured above by pressing Control-V and then hitting the escape key. That creates the <code>^[</code> character above, and allows us to enter some of the vi commands above into the config. Enter in that line of text above, using the Control-V trick to capture the return and esc characters.</p>
<p>Now, save the new file by typing <code>:wq!</code> in command mode, open up a new file with <code>vi file</code>, and test out your new <code>,a</code> shortcut. If everything went well, it should look just like the video below.</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="480" height="385" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/ES8u-T0ozKM&amp;hl=en&amp;fs=1&amp;rel=0" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="480" height="385" src="http://www.youtube.com/v/ES8u-T0ozKM&amp;hl=en&amp;fs=1&amp;rel=0" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<h3>Worth Learning</h3>
<p>The learning curve with vi is steep, but as with most things worth learning, the payoff is significant. This short article has barely scratched the surface of what vi can do. vi can be a full-fledged IDE, or you could use it to write your next book. The mapping features above are especially helpful if you do any programming, or if you manage any Unix or Linux servers. If you&#8217;d like to learn more, I&#8217;d suggest starting with <code>man vi</code>, and maybe picking up a copy of the O&#8217;Reilly book &#8220;<a href="http://oreilly.com/catalog/9780596529833/">Learning the vi and Vim Editors</a>.&#8221; Of course, I&#8217;d be happy to help out as well.</p>
<p>Back when I was first learning Unix, I asked an old graybeard why I should bother learning such a complicated, ancient text editor. He told me that since everything in Unix is a file, and almost all files in Unix are text, I needed some way to edit those files to control the system. Someday, he said, I would find myself without any other text editor, and without any other way to change a file. He was right, since I&#8217;m now working as a Unix systems administrator, I&#8217;ve been in that position for several years. Over time, I&#8217;ve come to appreciate all that vi can do for me.</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=172837+dig-into-unix-vi&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&utm_medium=editorial&utm_campaign=auto3&utm_term=172837+dig-into-unix-vi&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&utm_medium=editorial&utm_campaign=auto3&utm_term=172837+dig-into-unix-vi&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&utm_medium=editorial&utm_campaign=auto3&utm_term=172837+dig-into-unix-vi&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&amp;blog=14960843&amp;post=172837&amp;subd=gigaom2&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gigaom.com/apple/dig-into-unix-vi/feed/</wfw:commentRss>
		<slash:comments>17</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>
	</item>
		<item>
		<title>It’s the Little Things: Command Line Improvements to Mac OS X</title>
		<link>http://gigaom.com/apple/it%e2%80%99s-the-little-things-command-line-improvements-to-mac-os-x/</link>
		<comments>http://gigaom.com/apple/it%e2%80%99s-the-little-things-command-line-improvements-to-mac-os-x/#comments</comments>
		<pubDate>Thu, 21 May 2009 21:00:55 +0000</pubDate>
		<dc:creator>Tom Reestman</dc:creator>
				<category><![CDATA[CNN Big Tech]]></category>
		<category><![CDATA[Commentary]]></category>
		<category><![CDATA[NYT Enterprise]]></category>
		<category><![CDATA[SYN Analysis]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[hacks]]></category>
		<category><![CDATA[os x]]></category>
		<category><![CDATA[terminal]]></category>

		<guid isPermaLink="false">http://theappleblog.com/?p=24183</guid>
		<description><![CDATA[Recently, two articles appeared on TechRadar documenting various command line tweaks for various apps and functions of Mac OS X. While I didn’t find anything new there, it’s nice to have two articles that summarize a bunch instead of tracking them down one by one across [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gigaom.com&amp;blog=14960843&amp;post=172775&amp;subd=gigaom2&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img  title="Terminal" src="http://gigapple.files.wordpress.com/2009/05/terminal.png?w=133&#038;h=118" alt="Terminal" width="133" height="118" class=" alignleft" /></p>
<p class="excerpt">Recently, <a href="http://www.techradar.com/news/computing/apple/15-terminal-commands-to-supercharge-os-x-599882?artc_pg=1">two</a> <a href="http://www.techradar.com/news/computing/apple/unlock-mac-os-x-apps-hidden-features-600153?artc_pg=1">articles</a> appeared on TechRadar documenting various command line tweaks for various apps and functions of Mac OS X. While I didn’t find anything new there, it’s nice to have two articles that summarize a bunch instead of tracking them down one by one across countless bookmarks.</p>
<p>To be honest, most command line tweaks don’t appeal to me. For example, I’d sooner go back to running DOS than go back to using Safari’s “standard” tabs; I love the tabs on top. Still, it&#8217;s nice to know I could make the change if I felt so inclined.<span id="more-172775"></span></p>
<p>What’s surprising to me is that some of the tweaks I <em>do</em> like are incredibly simple &#8212; for example, the command that turns on stack highlighting even when using the mouse (No. eight in the first article above). Obviously, having the cursor over an item tells me which one will be activated if I click, and yet I like the highlight as a further indicator.</p>
<p><img  title="Stack_Hilights" src="http://gigapple.files.wordpress.com/2009/05/stack_hilights.png?w=590&#038;h=464" alt="Stack_Hilights" width="590" height="464" class=" alignleft" /><br />
I also like the one to remove the arrows from iTunes’ interface (No. seven in the second article). Again, this is a little thing, yet I value it in a manner that’s completely out of proportion to the actual change it makes. Put simply, I hate those arrows.</p>
<p>Meanwhile, there’s a tweak for Safari I really like that&#8217;s not in either article. It&#8217;s one that forces a click to open in a new tab (instead of a window). You can find that one <a href="http://www.macuser.com/tips/psst_safari_31_is_a_single_win.php?lsrc=murss">here</a>. Though documented for Safari 3.1, I use it for the Safari 4 beta with no issues.</p>
<p>I&#8217;m curious what you think. Which tweaks do you really like? Do you have any to add, and do they seem like major or minor changes to you?</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=172775+it%25e2%2580%2599s-the-little-things-command-line-improvements-to-mac-os-x&utm_content=thesmallwave">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&utm_medium=editorial&utm_campaign=auto3&utm_term=172775+it%25e2%2580%2599s-the-little-things-command-line-improvements-to-mac-os-x&utm_content=thesmallwave">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&utm_medium=editorial&utm_campaign=auto3&utm_term=172775+it%25e2%2580%2599s-the-little-things-command-line-improvements-to-mac-os-x&utm_content=thesmallwave">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&utm_medium=editorial&utm_campaign=auto3&utm_term=172775+it%25e2%2580%2599s-the-little-things-command-line-improvements-to-mac-os-x&utm_content=thesmallwave">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&amp;blog=14960843&amp;post=172775&amp;subd=gigaom2&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gigaom.com/apple/it%e2%80%99s-the-little-things-command-line-improvements-to-mac-os-x/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e1c4841c01b82448b3d91f3e21241e3d?s=96&#38;d=retro&#38;r=PG" medium="image">
			<media:title type="html">Tom</media:title>
		</media:content>

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

		<media:content url="http://gigapple.files.wordpress.com/2009/05/stack_hilights.png" medium="image">
			<media:title type="html">Stack_Hilights</media:title>
		</media:content>
	</item>
		<item>
		<title>My Holy Grail Of iPhone Apps Arrives: pTerm</title>
		<link>http://gigaom.com/apple/my-holy-grail-of-iphone-apps-arrives-pterm/</link>
		<comments>http://gigaom.com/apple/my-holy-grail-of-iphone-apps-arrives-pterm/#comments</comments>
		<pubDate>Fri, 08 Aug 2008 18:58:50 +0000</pubDate>
		<dc:creator>Bob Rudis</dc:creator>
				<category><![CDATA[Commentary]]></category>
		<category><![CDATA[news]]></category>
		<category><![CDATA[Software Reviews]]></category>
		<category><![CDATA[App Store]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[pterm]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[terminal]]></category>

		<guid isPermaLink="false">http://theappleblog.com/?p=4064</guid>
		<description><![CDATA[Just this week I was posing the question of where are all the (no-jailbreak-required) ssh/terminal apps for the iPhone? While not the best platform for such a tool (the keyboard would – and does, as you will see – eat up some serious real estate), the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gigaom.com&amp;blog=14960843&amp;post=171590&amp;subd=gigaom2&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img src="http://gigapple.files.wordpress.com/2008/08/pterm-icon.png?w=100&#038;h=139" alt="" title="pterm-icon" width="100" height="139"  class=" alignleft" />Just this week I was posing the question of where are all the (no-jailbreak-required) ssh/terminal apps for the iPhone? While not the best platform for such a tool (the keyboard would – and does, as you will see – eat up some serious real estate), the platform has enough processing power to handle such  an app and there are definitely times when it is handy to get ultra-portable access to your systems.</p>
<p>As if they were listening for my request, <a href="http://www.instantcocoa.com/products/pTerm/">Instant Cocoa</a> released <a href="http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=287269552&#038;mt=8">pTerm</a>, which provides support for SSH, Telnet and taw TCP client connections from your iPhone. pTerm is based on <a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html">PuTTY</a>, one of the more stable &#038; well-known ssh client suites (OS X users can grab that via some <a href="http://putty.darwinports.com/">ports</a>).<br />
<span id="more-171590"></span><br />
You start new sessions by choosing from the Connections panel:</p>
<div style="text-align:center;padding-bottom:12px"><img src="http://gigapple.files.wordpress.com/2008/08/aimg_0006.png?w=320&#038;h=480" alt="" title="aimg_0006" width="320" height="480"  class=" alignleft" /></div>
<p>To get an entry on that panel, you use a very basic configuration screen to enter a display name for the connection, the host (or IP address) and the port you wish to connect on:</p>
<div style="text-align:center;padding-bottom:12px"><img src="http://gigapple.files.wordpress.com/2008/08/aimg_0004.png?w=320&#038;h=480" alt="" title="aimg_0004" width="320" height="480"  class=" alignleft" /></div>
<p>For ssh connections, you will receive a warning about host keys that you should be familiar with if you&#8217;ve used ssh before (the developers presented this in a great way as it would have been much less iPhone-like to deal with this from within the terminal prompt):</p>
<div style="text-align:center;padding-bottom:12px"><img src="http://gigapple.files.wordpress.com/2008/08/img_00041.png?w=320&#038;h=480" alt="" title="img_00041" width="320" height="480"  class=" alignleft" /></div>
<p>The terminal sessions work in both landscape and portrait modes,</p>
<div style="text-align:center;padding-bottom:12px"><img src="http://gigapple.files.wordpress.com/2008/08/img_0008.png?w=320&#038;h=480" alt="" title="img_0008" width="320" height="480"  class=" alignleft" /></div>
<div style="text-align:center;padding-bottom:12px"><img src="http://gigapple.files.wordpress.com/2008/08/aimg_0007.png?w=480&#038;h=320" alt="" title="aimg_0007" width="480" height="320"  class=" alignleft" /></div>
<p>and the xterm emulation worked with &#8220;top&#8221; (which auto-updates) and &#8220;pine&#8221; (a terminal-based e-mail reader that does quite a bit of screen manipulation).</p>
<div style="text-align:center;padding-bottom:12px"><img src="http://gigapple.files.wordpress.com/2008/08/img_0006.png?w=320&#038;h=480" alt="" title="img_0006" width="320" height="480"  class=" alignleft" /></div>
<div style="text-align:center;padding-bottom:12px"><img src="http://gigapple.files.wordpress.com/2008/08/img_0005.png?w=320&#038;h=480" alt="" title="img_0005" width="320" height="480"  class=" alignleft" /></div>
<p>The Instant Cocoa devs understood the need for the CTRL key (yay!) and version 1.1 adds support for ESC as well (kinda useful if you choose to use &#8220;vi&#8221; in the session). Version 1.1 also fixes some instability issues and adds full-screen support (as you can see, the keyboard eats up the majority of the real-estate). They are working on allowing users to customize the terminal sizes/colors, adjust TCP settings, provide support for port forwarding and include ways to use more easily use terminal-specific keys.</p>
<p>Since pTerm is based on PuTTY, we may be able to expect to see significant feature enhancements. I would personally like to see the ability to use RSA/DSA keys and the ability to log sessions (which would require some way to get that log off the iPhone). It would also be great to keep multiple sessions open simultaneously (it&#8217;s in the works) and switch between them. Some folks might like the ability to cache credentials or at least the username associated with ssh sessions (not recommended, but it&#8217;s a personal-risk-decision one can make). For RAW socket connections, having a way to record and playback keystrokes or define a set of strings to paste into the session would be great for rapid testing of web/internet services.</p>
<p>For me, pTerm is definitely worth $4.99USD, especially if that covers major updates for a while. I&#8217;ve only tested it over EDGE, but it worked flawlessly, even with the latency.</p>
<p>If you use pTerm or have some feature requests for it, drop a note in the comments!</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=171590+my-holy-grail-of-iphone-apps-arrives-pterm&utm_content=hrbrmstr">Sign up for a free trial</a>.</p><ul><li><a href="http://pro.gigaom.com/2010/09/how-to-market-your-iphone-app-a-developers-guide/?utm_source=apple&utm_medium=editorial&utm_campaign=auto3&utm_term=171590+my-holy-grail-of-iphone-apps-arrives-pterm&utm_content=hrbrmstr">How to Market Your iPhone App: A Developer&#8217;s&nbsp;Guide</a></li><li><a href="?utm_source=apple&utm_medium=editorial&utm_campaign=auto3&utm_term=171590+my-holy-grail-of-iphone-apps-arrives-pterm&utm_content=hrbrmstr"></a></li><li><a href="http://pro.gigaom.com/2009/07/virtual-worlds-trends-and-opportunities/?utm_source=apple&utm_medium=editorial&utm_campaign=auto3&utm_term=171590+my-holy-grail-of-iphone-apps-arrives-pterm&utm_content=hrbrmstr">Virtual Worlds: Trends and&nbsp;Opportunities</a></li></ul><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gigaom.com&amp;blog=14960843&amp;post=171590&amp;subd=gigaom2&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gigaom.com/apple/my-holy-grail-of-iphone-apps-arrives-pterm/feed/</wfw:commentRss>
		<slash:comments>23</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/08/pterm-icon.png" medium="image">
			<media:title type="html">pterm-icon</media:title>
		</media:content>

		<media:content url="http://gigapple.files.wordpress.com/2008/08/aimg_0006.png" medium="image">
			<media:title type="html">aimg_0006</media:title>
		</media:content>

		<media:content url="http://gigapple.files.wordpress.com/2008/08/aimg_0004.png" medium="image">
			<media:title type="html">aimg_0004</media:title>
		</media:content>

		<media:content url="http://gigapple.files.wordpress.com/2008/08/img_00041.png" medium="image">
			<media:title type="html">img_00041</media:title>
		</media:content>

		<media:content url="http://gigapple.files.wordpress.com/2008/08/img_0008.png" medium="image">
			<media:title type="html">img_0008</media:title>
		</media:content>

		<media:content url="http://gigapple.files.wordpress.com/2008/08/aimg_0007.png" medium="image">
			<media:title type="html">aimg_0007</media:title>
		</media:content>

		<media:content url="http://gigapple.files.wordpress.com/2008/08/img_0006.png" medium="image">
			<media:title type="html">img_0006</media:title>
		</media:content>

		<media:content url="http://gigapple.files.wordpress.com/2008/08/img_0005.png" medium="image">
			<media:title type="html">img_0005</media:title>
		</media:content>
	</item>
		<item>
		<title>Tales From The Command Line: Where Has My Bandwidth Gone? (iftop &amp; SurplusMeter)</title>
		<link>http://gigaom.com/apple/tales-from-the-command-line-where-has-my-bandwidth-gone-iftop-surplusmeter/</link>
		<comments>http://gigaom.com/apple/tales-from-the-command-line-where-has-my-bandwidth-gone-iftop-surplusmeter/#comments</comments>
		<pubDate>Thu, 03 Jul 2008 14:00:28 +0000</pubDate>
		<dc:creator>Bob Rudis</dc:creator>
				<category><![CDATA[Asides]]></category>
		<category><![CDATA[Walkthroughs]]></category>
		<category><![CDATA[bandwidth]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[terminal]]></category>

		<guid isPermaLink="false">http://theappleblog.com/?p=3622</guid>
		<description><![CDATA[I believe I can safely say that the primary objective for users running OS X is to connect to the Internet to read mail, check out web sites, chat with friends, download new apps or grab/share multi-media content, etc. With bandwidth caps staring to become all [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gigaom.com&amp;blog=14960843&amp;post=171525&amp;subd=gigaom2&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img src="http://gigapple.files.wordpress.com/2008/07/surplus-icon.png?w=128&#038;h=128" alt="" title="surplus-icon" width="128" height="128"  class=" alignleft" />I believe I can safely say that the primary objective for users running OS X is to connect to the Internet to read mail, check out web sites, chat with friends, download new apps or grab/share multi-media content, etc. With <a href="http://arstechnica.com/news.ars/post/20080603-40gb-for-55-per-month-time-warner-bandwidth-caps-arrive.html">bandwidth caps</a> staring to become all the rage by the mega-providers, knowing how much you are consuming may be critical knowledge to hold back the costs/fees on your monthly bill.</p>
<p>This post covers two of three key programs for managing bandwidth: <code>iftop</code> (a command-line utility) and <b>SurplusMeter</b> (a GUI tool). The third utility &#8211; <code>lsof</code> (another command-line utility) &#8211; will require a dedicated article in-and-of itself.</p>
<h3>How Much Am I Consuming?</h3>
<p><a href="http://freespace.virgin.net/jeremy.dronfield/skoobysoft/skooby/download.html">SurplusMeter</a> is a small tool from the fine folks over at SkoobySoft with one mission: to show you how much bandwidth you are consuming with the option to enter any known caps to ensure you are not over your limit. You can download SurpluMeter <a href="http://freespace.virgin.net/jeremy.dronfield/skoobysoft/downloads/SurplusMeterv201.dmg">directly from their site</a>. It is a PPC binary compatible down to OS X 10.3.9. For those who want to live life on the wild side, you can <a href="http://freespace.virgin.net/jeremy.dronfield/skoobysoft/downloads/SurplusMeter_source201.tgz">grab the source code</a> and compile it yourself. I have built an OS X 10.5 compatible Universal Binary version which you can <a href="http://theappleblog.com/wp-content/uploads/2008/07/surplusmeter.zip">download via this post</a>. No matter which way you decide to go, it is important to copy the application to your local volume as it runs an agent program &#8211; which runs in the background collecting bandwidth data &#8211; that will make it difficult to remove mounted volumes if you keep it running.</p>
<div style="text-align:center;padding-bottom:12px"><img src="http://gigapple.files.wordpress.com/2008/07/surplus-meter-main-view.png?w=486&#038;h=478" alt="" title="surplus-meter-main-view" width="486" height="478"  class=" alignleft" /></div>
<p>The main view of SurplusMeter is fairly straightforward. You can set which day to start the monthly tracking period on and specify your known bandwidth cap &#8211; which can also include upstream usage. Monitoring can be paused if you know you will be moving between networks, the collected data can be reset and you can even choose which interface to monitor via their &#8220;English&#8221; names vs OS X short device names (e.g. &#8220;Ethernet port&#8221; vs &#8220;<code>en0</code>&#8220;). For my example, I did a short sample of bandwidth on my AT&#038;T 3G ExpressCard, hence the <code>PPP modem</code> selection. If there were hiccups during program execution or you know of other bandwidth usage on your connection not emanating from your Mac, you can add bytes to the current data collector.</p>
<div style="text-align:center;padding-bottom:12px"><img src="http://gigapple.files.wordpress.com/2008/07/surplus-meter-add-bytes.png?w=486&#038;h=478" alt="" title="surplus-meter-add-bytes" width="486" height="478"  class=" alignleft" /></div>
<p>Similarly, you can also remove bytes if you were measuring data on an interface that moved between networks.</p>
<div style="text-align:center;padding-bottom:12px"><img src="http://gigapple.files.wordpress.com/2008/07/surplus-meter-remove-bytes.png?w=486&#038;h=478" alt="" title="surplus-meter-remove-bytes" width="486" height="478"  class=" alignleft" /></div>
<p>SurplusMeter is kind enough to store its data in <code>~/Library/Application Support/SurplusMeter/surplusmeter_data.plist</code> in a very human- and machine-readable format (a well-annoted Apple plist) so you can do what you like with it:</p>
<div style="text-align:center;padding-bottom:12px"><img src="http://gigapple.files.wordpress.com/2008/07/surplus-meter-plist.png?w=495&#038;h=370" alt="" title="surplus-meter-plist" width="495" height="370"  class=" alignleft" /></div>
<p>In general, it is a great, special purpose utility to have around.</p>
<h3>What&#8217;s Going On Here?</h3>
<p>SurplusMeter tells you that you are using bandwidth, but does not provide any further details. This is where tool number two &#8211; <code>iftop</code> &#8211; comes into play. You can grab a pre-built package of <code>iftop</code> (&#8220;interface top&#8221;) from <a href="http://www.afp548.com/article.php?story=20070507113337840">AFP548.com</a> or <a href="http://www.ex-parrot.com/~pdw/iftop/">grab the source</a> and try your hand at building it (you may need to download some support libraries). Users of various &#8220;ports&#8221; tools should be able to find <code>iftop</code> in one of the repositories.</p>
<p>Where the command-line tool <code>top</code> provides a mechanism for determining what processes are consuming precious system resources (in a very similar fashion to the <b>Activity Monitor</b> application), <code>iftop</code> does something similar for network usage on a particular interface.</p>
<p>You will need some more technical information to run <code>iftop</code> successfully. First, you will need to know which network interface you want to monitor. To find out which interfaces you have on your system, open <b>Terminal.app</b> and run the command:</p>
<blockquote><p><code>ifconfig -l</code></p></blockquote>
<p>My output from that shows:</p>
<blockquote><p><code>lo0 gif0 stf0 en0 fw0 en1 vmnet8 vmnet1 ppp0</code></p></blockquote>
<p>Interface <code>en0</code> <i>generally</i> is equivalent to &#8220;Ethernet&#8221; and <code>en1</code> is <i>usually</i> equivalent to your AirPort card. <code>ppp0</code> would refer to most modems, including 3G cards. Additional interfaces may be related to a VMware or Parallels install, your local firewall interface or other local types of network devices.</p>
<p>With Terminal.app open, run <code>iftop -h</code> to see what the command line options are for the tool:</p>
<pre style="padding-bottom:12px">Synopsis: iftop -h | [-npbBP] [-i interface] [-f filter code] [-N net/mask]

   -h                  display this message
   -n                  don't do hostname lookups
   -N                  don't convert port numbers to services
   -p                  run in promiscuous mode (show traffic between other
                       hosts on the same network segment)
   -b                  don't display a bar graph of traffic
   -B                  Display bandwidth in bytes
   -i interface        listen on named interface
   -f filter code      use filter code to select packets to count
                       (default: none, but only IP packets are counted)
   -F net/mask         show traffic flows in/out of network
   -P                  show ports as well as hosts
   -m limit            sets the upper limit for the bandwidth scale
   -c config file      specifies an alternative configuration file</pre>
<p>For this example, the most useful options are &#8220;<code>-i</code>&#8221; to let us choose which interface to monitor and &#8220;<code>-P</code>&#8221; to show which ports are in use. The tool requires elevated privileges to work so you have to run the following to start your view: <code>sudo iftop -P -i ppp0</code> (again, replace &#8220;<code>ppp0</code>&#8221; with &#8220;<code>en0</code>&#8221; or &#8220;<code>en1</code>&#8221; or whatever interface you need to monitor).</p>
<p>You should see something similar to the following screen upon successful execution (minus the annotation):</p>
<div style="text-align:center;padding-bottom:12px"><img src="http://gigapple.files.wordpress.com/2008/07/iftop-itunes-annotated.png?w=500&#038;h=457" alt="" title="iftop-itunes-annotated" width="500" height="457"  class=" alignleft" /></div>
<p>The main part of the display lists, for each pair of hosts, the rate at which data  has been sent and received over the preceding 2, 10 and 40 second intervals. The direction of data flow is  indicated  by  arrows,  <=  and  =>. So in this example, where I started iTunes just after kicking off <code>iftop</code>, we can see that:</p>
<ul>
<li>166.129.237.160 (my local machine) made a series of http (web) requests to Apple servers</li>
<li>some of Apple&#8217;s servers do not resolve from IP addresses to host names</li>
<li>the average transfer rate over 40 seconds is between 0.2 kilobytes and 9 kilobytes per second</li>
</ul>
<p>After quitting iTunes and running for a while, then letting it sit &#8220;idle&#8221; (not actively doing network activity), you can see that the pattern of usage can change dramatically.</p>
<div style="text-align:center;padding-bottom:12px"><img src="http://gigapple.files.wordpress.com/2008/07/iftop-idle-annotated.png?w=500&#038;h=455" alt="" title="iftop-idle-annotated" width="500" height="455"  class=" alignleft" /></div>
<p>While <code>iftop</code> can let you see more of what is going on, it cannot tell you which applications or processes are causing the usage. You can infer quite a bit (i.e. http traffic is most likely coming from your browser &#8211; but this is not necessarily the case as shown by the last screen), but finding out core details is where <code>lsof</code> can be of real value and will be covered in our next installment.</p>
<p>While I have presented a free way to monitor bandwidth usage, Guy Meyer has a set of tools &#8211; <a href="http://homepage.mac.com/rominar/net.html">Net Monitor</a> &#038; <a href="http://homepage.mac.com/rominar/sidekick.html">Net Monitor Sidekick</a> which do something similar but are not free (the Sidekick program is in beta which is expired so I was not able to test it).</p>
<p>If you are using any of these or similar tools to monitor bandwidth utilization, drop a note in the comments to share your insights with TAB readers and keep an eye out for our post on <code>lsof</code>!</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=171525+tales-from-the-command-line-where-has-my-bandwidth-gone-iftop-surplusmeter&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&utm_medium=editorial&utm_campaign=auto3&utm_term=171525+tales-from-the-command-line-where-has-my-bandwidth-gone-iftop-surplusmeter&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&utm_medium=editorial&utm_campaign=auto3&utm_term=171525+tales-from-the-command-line-where-has-my-bandwidth-gone-iftop-surplusmeter&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&utm_medium=editorial&utm_campaign=auto3&utm_term=171525+tales-from-the-command-line-where-has-my-bandwidth-gone-iftop-surplusmeter&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&amp;blog=14960843&amp;post=171525&amp;subd=gigaom2&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gigaom.com/apple/tales-from-the-command-line-where-has-my-bandwidth-gone-iftop-surplusmeter/feed/</wfw:commentRss>
		<slash:comments>11</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/07/surplus-icon.png" medium="image">
			<media:title type="html">surplus-icon</media:title>
		</media:content>

		<media:content url="http://gigapple.files.wordpress.com/2008/07/surplus-meter-main-view.png" medium="image">
			<media:title type="html">surplus-meter-main-view</media:title>
		</media:content>

		<media:content url="http://gigapple.files.wordpress.com/2008/07/surplus-meter-add-bytes.png" medium="image">
			<media:title type="html">surplus-meter-add-bytes</media:title>
		</media:content>

		<media:content url="http://gigapple.files.wordpress.com/2008/07/surplus-meter-remove-bytes.png" medium="image">
			<media:title type="html">surplus-meter-remove-bytes</media:title>
		</media:content>

		<media:content url="http://gigapple.files.wordpress.com/2008/07/surplus-meter-plist.png" medium="image">
			<media:title type="html">surplus-meter-plist</media:title>
		</media:content>

		<media:content url="http://gigapple.files.wordpress.com/2008/07/iftop-itunes-annotated.png" medium="image">
			<media:title type="html">iftop-itunes-annotated</media:title>
		</media:content>

		<media:content url="http://gigapple.files.wordpress.com/2008/07/iftop-idle-annotated.png" medium="image">
			<media:title type="html">iftop-idle-annotated</media:title>
		</media:content>
	</item>
		<item>
		<title>Invisibility and Metadata</title>
		<link>http://gigaom.com/apple/invisibility-and-metadata/</link>
		<comments>http://gigaom.com/apple/invisibility-and-metadata/#comments</comments>
		<pubDate>Thu, 13 Mar 2008 15:07:58 +0000</pubDate>
		<dc:creator>Stephanie Guertin</dc:creator>
				<category><![CDATA[Asides]]></category>
		<category><![CDATA[Commentary]]></category>
		<category><![CDATA[hacks]]></category>
		<category><![CDATA[Leopard]]></category>
		<category><![CDATA[metadata]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[vanish]]></category>

		<guid isPermaLink="false">http://theappleblog.com/2008/03/13/invisibility-and-metadata/</guid>
		<description><![CDATA[I normally avoid anything that looks like tech support in my entries here, but this may verge on an exception. Bear with me, and I’ll explain. I rebooted my Macbook Pro about four days ago, and lo, to my surprise, the icon for my boot drive [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gigaom.com&amp;blog=14960843&amp;post=171315&amp;subd=gigaom2&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p class="excerpt">I normally avoid anything that looks like tech support in my entries here, but this may verge on an exception.  Bear with me, and I’ll explain.</p>
<p><img src="http://gigapple.files.wordpress.com/2008/03/ah-ha.png?w=604" alt="ah-ha.png"  class=" alignright" /> I rebooted my Macbook Pro about four days ago, and lo, to my surprise, the icon for my boot drive had vanished.  I was, too say the least, slightly perturbed.  (To the right, the culprit.)</p>
<p>I tried all the quick-fix things &#8211; changed what showed in Finder, tried to get it back through Finder &#8211; it was gone there too &#8211; and finally, I sucked it up and called Apple.  Three calls to Apple &#8211; and two instances of being hung up on &#8211; a clean install of Leopard, and multitudinous Google searches later, I had found two things:  a lot of other people were having these issues, all starting about the same time as mine, and, more importantly, a solution.</p>
<p>So first, the solution, and then the explanation of what it is, what it does, and what that means for all of us Mac users.</p>
<p>To get your startup drive back, you need to run two Terminal commands.  One of them requires that you have an Administrator password.  I’d generally try to give you a solution that didn’t require Terminal, given some peoples’ squishiness about that, but I can’t find another frontend to this.  (There’s an Applescript running around, but it doesn’t work, really.)</p>
<p>First, run <code>xattr -d com.apple.metadata:kMDItemFinderComment /***</code></p>
<p>In this case the *** signifies the name of your missing drive, as this command will work for any drive.  If you want your startup drive, all you need is the slash.</p>
<p>Next, run <code>sudo chflags nohidden /***</code>  Same deal with the asterisks, though in this case, another important modification is that it doesn’t need to be run as sudo unless you’re running it on your root drive.</p>
<p>Log out and/or restart, and your icon should be back to stay.</p>
<p>Now, what that all means.  As it turns out, the culprit in all this is a simple metadata flag, the hidden flag.  This is the same flag that hides the .DS_store files and other things that you’d rather not see floating about your operating system all the time.  The problem, in this case, is a change in how Leopard handles that flag, and metadata in general.</p>
<p>Leopard marks a very interesting shift in how Apple’s chosen to deal with the increasing amounts of complicated metadata that we’re all generating.  In past years, this has been stored in .DS_store files, for the most part.  Tiger added the xattr function family and API’s to play with some, and some people, namely Marquis Logan and John Siracusa, then wrote up some nice little tools that made this accessible to all of us.</p>
<p>In Leopard, there is now a native command for this.  There are four flags to the xattr command, at least so far as I’ve been able to tell.  (There is no man page for this, but -h works.)  They are -l, -p, -w, and -d, and all of them are written out as xattr -flag file [file path].  -L lists the names of all extended attributes on the file.  -P, used with -l, prints them.  -W is written out as xattr -w attribute_name attribute_value file [file path], and changes the chosen value to whatever you specify.  -D, the important one for the above command, simply deletes all extended attributes.  The first command, then, deletes all the extended attributes on the given file.  The com.apple.metadata.kMDItemFinderComment contains, among other things, the flags for drives in Finder.</p>
<p>The second command, the chflags command, resets the hidden flag on the given file.  Two different methods of getting at two different types of metadata, in essence.  The second command is found in a couple of places if you google this, but it by itself doesn’t keep the job done.  Without the xattr command, the hidden flag resets every time Finder does.</p>
<p>Now, how this happens?  I don’t know.  I’m working on that &#8211; but I suspect that Apple may be too.  And in the meantime, I&#8217;ve already found some neat things people are doing with it now.  Anyone for a <a href="http://henrik.nyh.se/2007/10/lift-the-leopard-download-quarantine">way</a> to kill that annoying &#8216;this program has been downloaded from the internet&#8217; message?</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=171315+invisibility-and-metadata&utm_content=gigaguest">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&utm_medium=editorial&utm_campaign=auto3&utm_term=171315+invisibility-and-metadata&utm_content=gigaguest">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&utm_medium=editorial&utm_campaign=auto3&utm_term=171315+invisibility-and-metadata&utm_content=gigaguest">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&utm_medium=editorial&utm_campaign=auto3&utm_term=171315+invisibility-and-metadata&utm_content=gigaguest">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&amp;blog=14960843&amp;post=171315&amp;subd=gigaom2&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gigaom.com/apple/invisibility-and-metadata/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4411542bbd7a2a9a2fc2a1b38809e45c?s=96&#38;d=retro&#38;r=PG" medium="image">
			<media:title type="html">gigaguest</media:title>
		</media:content>

		<media:content url="http://gigapple.files.wordpress.com/2008/03/ah-ha.png" medium="image">
			<media:title type="html">ah-ha.png</media:title>
		</media:content>
	</item>
		<item>
		<title>Hidden Gems In Leopard: OpenSnoop</title>
		<link>http://gigaom.com/apple/hidden-gems-in-leopard-opensnoop/</link>
		<comments>http://gigaom.com/apple/hidden-gems-in-leopard-opensnoop/#comments</comments>
		<pubDate>Mon, 14 Jan 2008 16:38:31 +0000</pubDate>
		<dc:creator>Bob Rudis</dc:creator>
				<category><![CDATA[Commentary]]></category>
		<category><![CDATA[Locations & Services]]></category>
		<category><![CDATA[Quickies]]></category>
		<category><![CDATA[dtrace]]></category>
		<category><![CDATA[Leopard]]></category>
		<category><![CDATA[scripting]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[terminal]]></category>

		<guid isPermaLink="false">http://theappleblog.com/2008/01/14/hidden-gems-in-leopard-opensnoop/</guid>
		<description><![CDATA[I have a confession to make: I have not always been a Mac person. For the period of time between the retirement of System 9 and Panther (yes, it took Apple showing a real commitment to Unix for me to give them a shot again), I [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gigaom.com&amp;blog=14960843&amp;post=171247&amp;subd=gigaom2&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I have a confession to make: I have not always been a Mac person. For the period of time between the retirement of System 9 and Panther (yes, it took Apple showing a real commitment to Unix for me to give them a shot again), I abandoned our fine operating system for greener pastures, well, green <em>screen</em> at least. Work drove me into Windows (as it has for about 90% of the workers out there) but my real outlet was anything Linux, BSD or Solaris-related. There was nary a distro that did not cross my hard drive (virtual or otherwise) and I was very happy programming, scripting and living life on the command line, with an occasional, lingering trip into X11 when necessary.</p>
<p>OS X changed all that, since Apple managed to make Unix look <em>very</em> good while keeping all of the real power that lies beneath the GUI.Now, one may be able to argue the aesthetics of  Leopard (hey, Panic should be happy, it took Leopard to finally drive me into purchasing CandyBar), but none can dispute the gems that await those who dare to invoke the Terminal, and I&#8217;ll be taking the opportunity over some of the coming posts to dwell on the nuggets that bear a deeper look. For those that are not as comfortable with the more textual side of their systems, I&#8217;ll be making these trips as painless as possible (you may not need to delve into the Utilities folder to find the Terminal icon at all).</p>
<p>The first stop is a little utility called <a href="http://developer.apple.com/documentation/Darwin/Reference/ManPages/man1/opensnoop.1m.html"><code>opensnoop</code></a>. Leopard ships with something called <a href="http://www.mactech.com/articles/mactech/Vol.23/23.11/ExploringLeopardwithDTrace/index.html">DTrace</a> that gives developers and administrators the ability to take a peek at what all running code is doing in a flexible and dynamic way. Giving DTrace the coverage it deserves is beyond a simple blog post, but there are some smaller utilities &#8211; like <code>opensnoop</code> &#8211; that take advantage of the power of DTrace, but on a more targeted scale which are worthy of a minor exposition.The main purpose of the <code>opensnoop</code> utility is to provide a report of file opens as they occur. Curious as to what really happens when Safari opens a web page? Want to see what files are accessed from that latest program you downloaded? You can find the answers with <code>opensnoop</code>.</p>
<p>If you can get to a terminal prompt, the simplest way to see what this utility does is to just type:</p>
<blockquote><p><code>sudo opensnoop</code> </p></blockquote>
<p>Non-Terminal folks can just run the <code>OpenSnoop.app</code> application from the <a href="http://theappleblog.com/wp-content/uploads/2008/01/opensnoop.zip" title="OpenSnoop App Archive">OpenSnoop App Archive</a> (354KB ZIP file). (Either way, you&#8217;ll be asked to enter your password since <code>opensnoop</code> requires higher-level privileges to run.)</p>
<p>Output will look something like the following, though your listing contents should be very different:</p>
<pre style="overflow-x: auto; overflow-y: auto; width: 500px; height: 200px">
UID    PID COMM            FD PATH 
501    286 SystemUIServer  17 /System/Library/CoreServices/Menu Extras/Spaces.menu/Contents/Resources/SpacesBackground.pdf
501    218 Finder          11 /.vol/234881026/571978
501    286 SystemUIServer  17 /System/Library/CoreServices/Menu Extras/Spaces.menu/Contents/Resources/SpacesBackground.pdf
501    286 SystemUIServer  17 /System/Library/CoreServices/Menu Extras/Spaces.menu/Contents/Resources/SpacesBackground.pdf
0      110 WindowServer     4 /var/log/windowserver.log 
0      110 WindowServer     4 /var/log/windowserver.log 
501    286 SystemUIServer  17 /System/Library/CoreServices/Menu Extras/Spaces.menu/Contents/Resources/SpacesBackground.pdf</pre>
<p>For each line:</p>
<ul>
<li><code>UID</code> is the numerical ID of the owner of program that has the file opened.</li>
<li><code>PID</code> is the process ID of the program that  has the file open</li>
<li><code>COMM</code> is the actual name of the process <strong>(this is something we care about)</strong></li>
<li><code>FD</code> is the numerical file descriptor (ID) of the file being accessed</li>
<li><code>PATH</code> is the full OS X path to the file being accessed <strong>(this is also something we care about)</strong></li>
</ul>
<p>The sample output is what occurred when I switched to/from Spaces 1 &amp; 3. Just that simple case shows how interesting <code>opensnoop</code> can be since we see that the <code>SystemUIServer</code>  and <code>WindowServer</code> were both invoked when I worked just a little bit with Spaces and that <code>SpacesBackground.pdf</code> was loaded from one of the Spaces app bundles.</p>
<p>While this is useful in-and-of itself, we can use <code>opensnoop</code> for more targeted and detailed inspection. The following command:</p>
<blockquote><p><code>sudo opensnoop -avgn Safari</code></p></blockquote>
<p>(Non-Terminal users can run the <code>SnoopSafari.app</code> from the archive)</p>
<p>Produces the following output when I tell it to go to <code>google.com</code>:</p>
<pre style="overflow-x: auto; overflow-y: auto; width: 500px; height: 200px">
TIME           STRTIME                UID    PID  FD ERR PATH                 ARGS
8071248908     2008 Jan 10 21:33:13   501   1153  17   0 /Users/bob/Library/Caches/com.apple.Safari/Cache.db-journal Safari 
8071249029     2008 Jan 10 21:33:13   501   1153  18   0 /Users/bob/Library/Caches/com.apple.Safari Safari 
8071249636     2008 Jan 10 21:33:13   501   1153  24   0 /var/tmp/etilqs_rjFUOz2TEh7AaoG Safari 
8075981916     2008 Jan 10 21:33:18   501   1153  18   0 /Users/bob/Library/Caches/Metadata/Safari/History/.tracked filenames.plist Safari 
8075982865     2008 Jan 10 21:33:18   501   1153  18   0 /Users/bob/Library/Caches/Metadata/Safari/History/http:%2F%2Fgoogle.com%2F.webhistory Safari 
8075983663     2008 Jan 10 21:33:18   501   1153  18   0 /Users/bob/Library/Caches/Metadata/Safari/History/http:%2F%2Fwww.google.com%2F.webhistory Safari 
8075984521     2008 Jan 10 21:33:18   501   1153  18   0 /Users/bob/Library/Caches/Metadata/Safari/History/.tracked filenames.plist Safari 
8075980917     2008 Jan 10 21:33:18   501   1153  18   0 /.vol/234881026/713654 Safari 
8077969298     2008 Jan 10 21:33:19   501   1153  18   0 /Users/bob/Library/Safari/.dat0481.441 Safari 
8077966383     2008 Jan 10 21:33:19   501   1153  18   0 /Users/bob/Library/Safari/.dat0481.440 Safari 
8080982146     2008 Jan 10 21:33:23   501   1153  18   0 /Users/bob/Library/Safari/lock/.dat0481.442 Safari 
8080983115     2008 Jan 10 21:33:23   501   1153  18   0 /Users/bob/Library/Safari/lock/details.plist Safari 
8081191826     2008 Jan 10 21:33:23   501   1153  18   0 /Users/bob/Library/Safari/lock/details.plist Safari 
8081192743     2008 Jan 10 21:33:23   501   1153  18   0 /Users/bob/Library/Safari/lock Safari 
8081193635     2008 Jan 10 21:33:23   501   1153  18   0 /Users/bob/Library/Safari/.de0481.443 Safari </pre>
<p>The extra fields are the Unix-coded time, the translated timestamp, the error code (if any) and the file being accessed. This is a more verbose listing, but we will not see any file data from application other than Safari. You can substitute &#8220;Adium&#8221; or &#8220;Finder&#8221;, etc for &#8220;Safari&#8221; on the command line and I&#8217;ve included <code>SnoopAdium.app</code>, <code>SnoopFinder.app</code> and <code>SnoopFirefox.app</code> within the archive.</p>
<p>Hopefully, you are beginning to see the power of this small utility.While there are many options for you to explore within <code>opensnoop</code>, one of the more interesting ones is the &#8220;<code>-x</code>&#8221; flag, which only displays the failed opens (I&#8217;ve included <code>SnoopFailed.app</code> in the archive as well). It&#8217;s always good to peek at what applications are looking for but cannot find, especially if you are having trouble with your system or a particular application.I&#8217;m working on a more generic GUI front-end to <code>opensnoop</code> and will let you know when I have something worth sharing.</p>
<p>These apps were all built with the extremely useful <a href="http://www.sveinbjorn.org/platypus">Platypus</a> tool (which is in my developer folder once again post-Leopard install). If there&#8217;s a particular &#8220;snoop&#8221; app you&#8217;d like me to whip up, drop a note in the comments and I&#8217;ll do my best to crank&#8217;em out (I&#8217;ll post the other apps either on my .Mac iDisk or my personal site).</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=171247+hidden-gems-in-leopard-opensnoop&utm_content=hrbrmstr">Sign up for a free trial</a>.</p><ul><li><a href="http://pro.gigaom.com/2010/07/green-it-overview-q2-2010/?utm_source=apple&utm_medium=editorial&utm_campaign=auto3&utm_term=171247+hidden-gems-in-leopard-opensnoop&utm_content=hrbrmstr">Green IT Overview, Q2&nbsp;2010</a></li><li><a href="?utm_source=apple&utm_medium=editorial&utm_campaign=auto3&utm_term=171247+hidden-gems-in-leopard-opensnoop&utm_content=hrbrmstr"></a></li><li><a href="http://pro.gigaom.com/2011/03/why-ipad-2-will-lead-consumers-into-the-post-pc-era/?utm_source=apple&utm_medium=editorial&utm_campaign=auto3&utm_term=171247+hidden-gems-in-leopard-opensnoop&utm_content=hrbrmstr">Why iPad 2 Will Lead Consumers Into the Post-PC&nbsp;Era</a></li></ul><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gigaom.com&amp;blog=14960843&amp;post=171247&amp;subd=gigaom2&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gigaom.com/apple/hidden-gems-in-leopard-opensnoop/feed/</wfw:commentRss>
		<slash:comments>6</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>
	</item>
	</channel>
</rss>
