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.


1 Answer 1


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.

You can get the same result with a keyboard shortcut of Command+Option+C.

Source http://osxdaily.com/2015/11/05/copy-file-path-name-text-mac-os-x-finder/

  • 13
    Command+Option+C works well. Commented Sep 2, 2022 at 5:56
  • 4
    macOS has everything, you just need a cheatsheet to get it
    – maaw
    Commented May 17, 2023 at 18:03

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