Invoking the OSX Finder from the command line

April 21, 2010

I spend a great deal of time operating from the command line, be it on OSX, Linux or Cygwin (on Windows). My primary machine runs OSX, and from time to time I wished I could view the files in the current working directory in the OSX Finder. For whatever reason, I’m usually in too much of a rush to search for or think about a quicker way to invoke the finder with the current directory from the command line. Instead, I wind up just opening the finder and (re)navigating to the same directory.

The other day, for whatever reason, I tried something that just seems sooo obvious in hindsight – use the OSX open command, passing in the current working directory.

flurge:~ user$ open .

Voila – new finder window is opened right off the command line. I should have thought about it sooner.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: