How to show and copy a file's path on a Mac

Updated · by , maker of Gander

macOS hides file paths by default. There are at least six ways to see one, and the quickest takes a single keystroke.

1. Turn on the path bar

In Finder, choose View, then Show Path Bar, or press ⌥⌘P.

A strip appears at the bottom of every Finder window showing the folders leading to the selected item. Double-click any folder in it to jump there. This is the one to leave switched on.

2. Command-click the window title

Hold ⌘ and click the folder name at the top of a Finder window. A menu lists every enclosing folder. The same trick works on the title of a document window in most apps, which is the fastest way to learn where an open file is saved.

3. Copy the full path

  1. Right-click the file in Finder.
  2. Hold ⌥. Copy changes to Copy "name" as Pathname.
  3. Click it.

Or select the file and press ⌥⌘C. The clipboard now holds something like /Users/you/Documents/report.pdf.

4. Get Info

Select the file and press ⌘I. The Where line under General shows its folder. You can select and copy that text.

5. Drag it into Terminal

Drag any file or folder onto a Terminal window and its path is typed for you, with spaces escaped correctly.

6. Go to a path you already have

In Finder, press ⇧⌘G and paste or type a path. A tilde stands for your home folder, so ~/Downloads works.

From a search result

Search results show names with no hint of location. Select a result and look at the path bar, or press ⌘R to open the folder that contains it.

In Gander

Gander shows files by type instead of by folder, so the path matters when you want to act on one. Every file has Show in Finder and Copy Path in its right-click menu, and the Inspector, opened with ⌘I, shows the folder under Where.

FAQ

How do I always show the full path in the Finder title bar?

Run defaults write com.apple.finder _FXShowPosixPathInTitle -bool true; killall Finder in Terminal. Replace true with false to turn it off.

What does the tilde mean in a path?

It is shorthand for your home folder, /Users/ followed by your account name.

Why does a copied path have backslashes in it?

Paths typed by dragging into Terminal have a backslash before each space so that the shell treats the path as one item. Copy as Pathname gives the plain version.

Share this guide: X · LinkedIn · Reddit · Hacker News · Email

Keep reading