Sizzling Safari Tips for Mac Users ebook.  22 Tempting Timesavers for Mac Users ebook.

Search here or browse MacTips by topic.

View the Path of a File

The Path Bar quickly shows where a file is and gives you speedy access to any folders in the file’s path.

 

View the Path of a File
Mac Tip #359, 08 October 2008

Sometimes when you’re looking at a file or folder in the Finder you want to know just exactly where it is. It’s not always obvious just by looking.

Mac OS X 10.5 introduced an extra item to the View menu though that helps out: Show Path Bar.

Choose Show Path Bar and then go to a Finder window and select a file.

Show Path Bar

Choose Show Path Bar

Now at the bottom of the window you can see a ‘trail’, similar to this one from my machine:

Pluto > Users > miraz > Documents > ngpod > mexhat.jpg

Command click the name in the Title Bar

Command click the name in the Title Bar

This tells me that the file named mexhat.jpg is in a folder called ngpod in my Documents folder. My username is miraz, and my machine is named Pluto.

Switch to Column view

Switch to Column view

Each item in the file path in that Path Bar also acts as a button. In my example, if I double click on the Documents part of the file path I switch to viewing the Documents folder.

Of course, there are other ways to see where the file resides on the hard drive:

  1. Command click the name in the Title Bar: a dropdown menu displays the file path.
  2. The Get Info window  shows the file path

    The Get Info window shows the file path

    Switch to Column view: you can see the file’s path by the columns to the left of it.
  3. Select the file and choose Get Info from the File menu. The Info window opens. In the General section of the Info window the Where item shows the file path.

So next time you can see a file but you’re not sure where it is exactly just glance down at the Path Bar if it’s displayed, or use one of the other methods I’ve mentioned above.

Did I miss any possibilities? Let me know in the Comments below.

If you found this Tip useful you definitely need my ebooks Sizzling Safari Tips for Mac Users & 22 Tempting Timesavers for Mac Users. And remember to subscribe for regular Tips.

Tell us what you think.
Note: your comment is not published straight away. I check and approve all comments, otherwise the spammers get a free rein. I usually check comments within 24 hours.

Ira 12 November 2008 at 17:52:23

Sure, sounds good but where do you go to actualy choose the option of “Show Path Bar?”

Reply

Miraz Jordan 12 November 2008 at 18:31:25

Ooops, sorry about that. In Leopard’s Finder choose Show Path Bar from the View menu.

Thanks for reading.

Reply

Lauren 27 January 2009 at 10:13:42

How would you go about copying it to the clipboard? None of those options are text-selectable on my machine.

Reply

Miraz Jordan 28 January 2009 at 18:41:50

Well, there’s one sneaky, but easy way to do it. Have the enclosing folder open in Finder. Open Terminal (in Applications – Utilities). Drag the file whose path you want to copy into the open Terminal window. The path is entered for you.

For example, I dragged About Stacks.pdf from my Documents folder into a Terminal window. This was what I saw:

/Users/miraz/Documents/About\ Stacks.pdf

Another option involves buying and installing the most excellent Finder replacement called PathFinder. Control Click on a file and choose from the Contextual menu to Copy Path. You’re given a choice of 6 different formats, including Unix, HFS and so on.

PathFinder is totally worth it for many other reasons, but if you often need to copy a file path, then it would be a good choice.

You know, there’s probably also an Automator action you could set up…

Cheers,

Miraz

Reply

ryan 1 April 2009 at 11:56:27

This is why macs suck. Why don’t they just build that in. Removing functionality doesn’t always make things more usable. I understand the duality between usibility and flexibility, but this is ridiculous.

Another thing. When the hell are they going to put a “show desktop” button to minimize all windows. Seems like a very simple thing that they forget in all new versions of macs.

Reply

ryan 1 April 2009 at 11:58:08

Oh, and yes that is great that you can copy a path the the clip board by using these ridiculous methods. However, it would be nice if you could paste it somewhere to go directly to the directory.

Reply

Miraz Jordan 1 April 2009 at 12:40:21

Ryan wrote: “Another thing. When the hell are they going to put a “show desktop” button to minimize all windows. Seems like a very simple thing that they forget in all new versions of macs.”

Why do you want to minimise all windows Ryan? If you want an ‘uncluttered’ view of the Desktop press F11 to move all windows out of the way. They all ‘minimise’ themselves to the sides of the screen. Press F11 again to bring them back.

Remember that if you’re using a laptop you may need to also press the fn key, depending on the settings you’ve chosen in System Prefs.

To go directly to a directory while an Open or Save dialog is open – eg to go directly to ~/Documents/iChats – press Command Shift G. A text area appears where you can type or paste an address, such as ~/Documents/iChats. Press the Go button and there you are.

I hope that helps.

Reply

Miraz Jordan 1 April 2009 at 12:45:18

Ryan, also remember that if you want full access to all the power features hidden under the hood, with no constraints, there’s nothing to stop you from using the Command Line via Terminal.

There’s plenty of flexibility in the Mac OS, for both users who want the minimum interface, fuss and bother, to those who want to control everything.

If I open a Terminal window and type “open ~/Documents/iChats” then press Return, a Finder window pops open, displaying the contents of that folder.

Reply

sarah 19 September 2009 at 01:13:59

thanks for the tips. i’m shocked that the only way you can copy and paste a file path is via the terminal. i need to do this a lot and it seems insane. also can’t handle spaces in file or folder names.
one other way i’ve found for those using office 2003 and excel is view/toolbars/web.
that gives a file path in the address field of the toolbar which can copy and paste. they got rid of this in later versions of office i believe which is a shame.
Sarah

Reply

mike 12 January 2010 at 11:36:10

try using Bridge with the BrowseBar2.
http://www.adobe.com/cfusion/exchange/index.cfm?event=productHome&exc=20&loc=en_us
I was a little buggy, but it works

Reply

Dave 2 March 2010 at 19:34:13

There’s also this, which I actually prefer even more:

http://www.mactricksandtips.com/2008/01/enabling-folder-path-in-finder.html

Reply

Miraz 3 March 2010 at 08:11:48

It’s good to know about that one Dave. Thanks.

Reply

Brian Forbes 21 July 2010 at 09:43:28

I just bought a Mac and can tell you that the ridiculous amount of clicking just to locate and save files is a HUGE TIME WASTER. Under Windows, I had an explorer (finder) window open with a path to a folder that I needed to open from and save to while moving between programs. It was this simple, copy the path, save from the program, paste path into the name field, hit enter, guess what? I’m in the right folder and I just hit save. If I didn’t copy or paste anything in a program, then the path remained on my clipboard – too easy.

So this is totally cracked out and should be fixed. Btw 10.6.x there is no “show path” option.

Reply

Miraz 26 July 2010 at 14:58:24

Brian,

I’m running 10.6.4 and Show Path Bar is right under the View menu when I have a Finder window open.

I solve the problem you mention above with the most excellent Default Folder X

http://www.stclairsoft.com/DefaultFolderX/

It allows me to click on any folder that’s already open to have the file saved there. It also gives easy access to recent folders, favourite folders, and preferences about where to save files in various circumstances.

I’ve been using it for years and hate to be without it.

Reply

Mel 6 February 2011 at 10:12:20

I have been trying to figure out how to find the filepath of non-Office documents for a very long time. I already use Pathfinder and discovering this feature is HUGE. Thank you very much. Please don’t post my email address – I assume you don’t, but just in case….

Reply

Miraz Jordan 7 February 2011 at 09:08:24

I’m glad this was useful for you Mel. Thanks for reading.

Reply

Nicholas Gruen 14 November 2011 at 20:10:49

Can you right click on a file and open it in its relevant folder in the finder? You can in iTunes and in Windows, but I can’t figure out how to do it.

Reply

Miraz Jordan 14 November 2011 at 20:17:49

I’m afraid I just don’t understand this question. If the file’s displayed in iTunes you can right click on it to show it in the Finder, as you say. If it’s not in iTunes, then where is it? If it’s already showing in the Finder then it’s already in its containing folder. If it’s listed in some other app, then it depends on the app that’s displaying it.

Reply

Nicholas Gruen 15 November 2011 at 01:51:45

Yep – certainly seems to be the stupidest question I’ve asked in a while. Sorry to waste your time. I may mean something, but if so, I’ll have to think about it and get back to you :)

Reply

Gblum 28 November 2011 at 01:40:33

No, you’ve explained perfectly well how to know the file path when you already see the file on your computer. But my problem is different, I sometimes need to search a file when I only have the file path and this turns out to be a lot more difficult, any suggestions?

Reply

Miraz Jordan 28 November 2011 at 06:21:53

You can quickly open any folder by using the Go to Folder… command in the Go menu in the Finder. See http://mactips.info/2011/11/how-to-read-and-write-a-filepath – How to read and write a filepath – for more info.

Reply

Add your Comment

Take Control ebooks (affiliate link) are superb.
I do some of my best learning from them. Buy through my link so I can make more and better Tips.

Take Control of Using Lion.   Buy Take Control of iCloud.  Take Control of BBEdit.