13

This question already has an answer here:

I am looking for a shortcut to copy the path of a file in Mac OS. I generally require it to copy paste in editor.

marked as duplicate by Ruskes, Mateusz Szlosek, Tetsujin macos Oct 8 '18 at 5:52

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

34

All you need to do to copy any items path name directly to the clipboard from anywhere in the file system:

  1. Navigate to the file or folder you wish to copy the path for Right-click (or Control+Click, or a Two-Finger click on trackpads) on the file or folder in the Mac Finder
  2. While in the right-click menu, hold down the OPTION key to reveal the “Copy (item name) as Pathname” option, it replaces the standard Copy option Once selected, the file or folders path is now in the clipboard, ready to be pasted anywhere

The copied pathname is always the complete path, it’s not relative.

More details on the following link: http://osxdaily.com/2015/11/05/copy-file-path-name-text-mac-os-x-finder/

  • 3
    Nice tip! As a long-time Mac user who knows a lot of shortcuts, I'm surprised I never knew about this one. Thanks! – Alan Kinnaman Oct 8 '18 at 5:37
  • 4
    Shortcut: Command+option+C – Catbuilts May 10 at 15:16
  • 1
    @Catbuilts THAT is what I was looking for (command-C just gets the file name without path) – javadba Jun 25 at 21:12

Not the answer you're looking for? Browse other questions tagged .