How to Open Current Folder in Finder from Terminal of Mac OS X

From the Mac Terminal, you can immediately open whatever folder or directory you are working within into the Finder of OS X by simply typing the following command:

open .

This will open the present working directory (PWD in the world of UNIX acronyms) in the Terminal / Command line into the Finder of the Mac – you know, the visual file system.

You can do this from anywhere in the command line as long as you’re in a local path, but it doesn’t matter if it’s system files or user files, you can launch it into the Finder. This can actually be a really helpful way to modify and adjust buried system files if you found them through the command line but now need to interact with them in the Finder.

For example, if you’re digging around in /Library/Preferences/Mozilla/ and type open . that folder will be opened in the Finder. Or if your CWD is /etc/ and you want to access that directory immediately in Finder, type ‘open .’ to access it.

The screenshot above shows this in action while the PWD within the Terminal is the /Applications directory, thus the Applications folder is opened in the Finder.

This is useful for many reasons that I’m sure you can think of, and it’s one of those must-know tricks for command line users in OS X.


Agha Murtaza is a web designer and WordPress developer with over one year of experience. You can visit his business site here . Murtaza is the CEO of He also has an opinion on just about every subject. You can follow his rants on Twitter @syedmurtazamn.