How to copy a file's path on a Mac

Copy the full path of a file or folder on a Mac from Finder's menu, with a shortcut, or by dragging into Terminal, and open a path you copied.

By Rudra Satani, maker of NotchMind ·

The shortcut

Select the file in Finder and press ⌥ ⌘ C. The full path, such as /Users/you/Documents/report.pdf, is now on the clipboard.

The menu

Right-click the file, hold ⌥, and Copy becomes Copy “report.pdf” as Pathname.

Drag into Terminal

Drag any file into a Terminal window and its path is typed for you, with spaces escaped.

See the path

View → Show Path Bar shows the folders at the bottom of every Finder window. Right-click a folder there to copy its path or open Terminal at it.

Go the other way

Copy a path and press ⇧ ⌘ G in Finder to jump there. NotchMind, which I make, recognizes a copied path and offers Reveal in Finder right away. See actions for what you copy.

About the author

Rudra Satani makes NotchMind, a notch app for Mac, so read anything about notch apps here with that in mind. Spotted a mistake? Email support@notchmind.com, or reach out at @rudraxx13.