Archive

Archive for March 1, 2013

Opening Finder windows from the Terminal

March 1, 2013 2 comments

While working on the command line in Terminal, I occasionally need to open up a new Finder window so that I can take a look at something in the Finder. When this happens, the open command provides a useful shortcut to do so.

To open a new Finder window from the current directory in the Terminal, you would run the following command:

open .

For example, if you have navigated to the Pictures directory in your home folder, running this command would cause the Pictures directory to open in a new Finder window.

Screen Shot 2013-03-01 at 10.28.33 AM

Screen Shot 2013-03-01 at 10.26.25 AM

If you want to open a Finder window using Terminal for an alternate directory, you would run the following command:

open /path/to/directory

For example, if you wanted to access the XProtect.meta.plist file stored in the /System/Library/CoreServices/CoreTypes.bundle/Contents/Resources directory, you could run this command to open the /System/Library/CoreServices/CoreTypes.bundle/Contents/Resources directory in a new Finder window:

open /System/Library/CoreServices/CoreTypes.bundle/Contents/Resources

Screen Shot 2013-03-01 at 10.27.41 AM

Screen Shot 2013-03-01 at 10.28.06 AM

Follow

Get every new post delivered to your Inbox.

Join 144 other followers

%d bloggers like this: