/kb

personal knowledgebase

Open Finder for current directory from command line

with 3 comments

I just learned how to open a Finder window directly from the command line.

open .

Yes, it’s actually that easy, and the open command is quite handy some times. This is from the open man page.

The open command opens a file (or a directory or URL), just as if you had double-clicked the
file’s icon. If no application name is specified, the default application as determined via
LaunchServices is used to open the specified files.

This means that you can actually open anything from the command line with the open command. Go ahead and try it out!

Theoretically related posts

Written by HÃ¥vard Grimelid

January 9th, 2009 at 9:41 am

Posted in Shell

Tagged with , ,

3 Responses to 'Open Finder for current directory from command line'

Subscribe to comments with RSS or TrackBack to 'Open Finder for current directory from command line'.

  1. Thanks you ! I have been looking for this answer for months (on and off – get easily distracted with some many of the other easter eggs in Mac OSx

    open . -

    Delbudev

    11 Apr 10 at 20:52

  2. Fantastic – I was also looking for this one as in Linux/Windows you just do nautilus . or explorer .

    nigel

    17 Nov 10 at 19:31

  3. Fantastic! I was trying to figure out how to show in finder, and the simple “open” command is exactly that.

    Jay

    14 Apr 11 at 01:25

Leave a Reply