Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

If I am in a specific path in a Terminal window, how can I open that same window in a new Finder window?

Note: This is the opposite of opening a Terminal from Finder.

share|improve this question
How is this done in Mavericks? – Wolfgang Fahl Nov 11 '13 at 5:18
@WolfgangFahl the open . technique still works for me. – Jim McKeeth Nov 11 '13 at 21:26
up vote 124 down vote accepted

Typing open . in Terminal will open the current working directory in a Finder window.

share|improve this answer
Thanks, that was exactly what I was looking for. I'd seen it before, but forgot it. – Jim McKeeth Jul 30 '11 at 22:14
Looks like this is broken in 10.9 Mavericks. Any workaround? – Wolfgang Fahl Nov 11 '13 at 5:19
@WolfgangFahl It still works for me in 10.9 Mavericks. – Jim McKeeth Nov 11 '13 at 21:25
@WolfgangFahl Was your Mavericks install a fresh install or an upgrade? My upgraded install of Mavericks lets me use this command. – Keen Feb 22 '14 at 3:15
of four Mavericks installs i did the problem only happend once for an upgrade install. All otheres were fine. The problem with the upgrade install also went away after a while. Strange ... – Wolfgang Fahl Feb 22 '14 at 16:30

Stretch goal!

To expand on the answer above (because the more appropriate related question is marked as a dupe and can't recieve new answers)...

I've added a function to my ~/.bash_profile to handle revealing a file or directory:

# Reveal a file or directory in Finder
# ..expects only one argument
# the argument is quoted to accommodate spaces in the filename
reveal () {
   # if the first arg is a directory
   if [[ -d "$1" ]];
           # ..use the argument directly
           # ..we passed a file, so use its containing directory
           basedir=$(dirname "$1")
   # basedir is a directory in now, so open will activate Finder
   open "$basedir"

To install the function:

  • paste/save it into ~/.bash_profile
  • source ~/.bash_profile or open a new terminal/tab

The context for my use is that I'll be browsing around using ls with tab completion, then when I find what I'm looking for, I can reveal (or cd or subl) the most recent arg, like:

ls dir/subdir<tab tab>
subsubdir  anotherdir
ls dir/subdir/anotherdir
reveal !$
share|improve this answer
+1 - thanks for handy shortcut function - I prefer to call it locate - ;) – software.wikipedia Jun 15 '15 at 20:57
worth noting that the only thing that this adds to open . is allowing us to pass a filename and get the containing directory :) – ptim Oct 9 '15 at 2:29

If you have autojump installed, you don't even have to type the full path to the directory. You can simply type jo partialdirectoryname, and autojump will open a new Finder window in the specified directory.

I love this method, because you don't have to remember the entire directory name. Autojump keeps a list of most commonly used locations, and automatically knows which directory you're referring to, even if you only give it part of the name.

share|improve this answer

Typing open . in Terminal will open the current working directory in a Finder window.
But there is also an alternative version

open `pwd`
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.