Random thoughts & observations

From the mundane to the profound and everything in between here’s what’s rocking our world

Opening directories and files from the Mac OS X terminal

Posted: February 14, 2014
Written by: Saints At Play
Category: Unix

One of the things we love about Mac OS X is the ability to do the same thing just in different ways.

Case in point, opening files and directories in GUI view from the Mac OS X Terminal.

Open up the Terminal app (located in Application/Utilities) and navigate to your Mac's Desktop with the following command (replacing your-username-here with your account username):

cd /Users/your-username-here/Desktop

Now type out the following to target a file or directory of your choice:

open name-of-desktop-filename-or-directory-of-your-choice-here

And your Mac will obligingly open that file (in the appropriate program) or directory (in the Finder) for you.

« Return to Posts


There are no comments

Posting comments after three months has been disabled.