Copy path in Mac Finder: every method, and which path you get
To copy the path of a file or folder on a Mac, select it in the Finder, hold the Option key, and open the Edit menu or the right-click menu. The "Copy" item changes to "Copy "name" as Pathname". Choose it, or press Option-Command-C, and the full path, such as /Users/yourname/Documents/Reports, is on the clipboard, ready to paste into Terminal, a code editor, a chat with an AI tool, or a document. That is the fastest answer for most readers searching "copy path in mac". The rest of this page covers the other routes, including one documented in Apple's own Mac User Guide, how to copy several paths at once, and the three situations where the path you paste is not the one you expected: spaces, cloud folders, and symbolic links.
The Option key method, step by step
The menu item is hidden until you hold Option, which is why many people never find it. The steps:
- In the Finder, click the file or folder once to select it.
- Right-click it (or Control-click) to open the context menu.
- Hold down the Option key. The item that reads "Copy "name"" changes to "Copy "name" as Pathname".
- Click it while still holding Option.
The same switch happens in the Edit menu in the menu bar: open Edit, hold Option, and "Copy" becomes the pathname version. With the item selected, the keyboard shortcut Option-Command-C does the same thing without opening any menu.
What lands on the clipboard is the full POSIX path, starting with /. For a folder named Reports inside Documents, that is /Users/yourname/Documents/Reports. There is no ~ shorthand, no quotation marks, and no file:// prefix.
If more than one item is selected, the menu text changes again. The Finder's own English strings include "Copy ^0 Items as Pathnames", which appears as "Copy 3 Items as Pathnames" when three items are selected. Each path is placed on its own line. That is handy for building a list of files to pass to a script or to paste into a message.
The path bar route, from Apple's Mac User Guide
Apple documents a second method in the Mac User Guide, under "Show the path to a file or folder". It goes through the path bar, the strip at the bottom of a Finder window that shows the chain of folders from the disk to the current location.
Choose View > Show Path Bar, or press the Option key to show the path bar momentarily. Source: support.apple.com
The same page then says to Control-click a folder in the path bar and choose Copy "folder" as Pathname. Apple's list of Mac keyboard shortcuts gives Option-Command-P to hide or show the path bar in Finder windows.
The path bar route has one advantage over the Option key method. It works on the folder you are currently inside, not only on a selected item. If you have opened Reports and are looking at its contents, Reports itself is not selected anywhere in the window, but it is in the path bar. Control-clicking it there copies its path. It also lets you copy the path of any parent folder in the chain without navigating up.
Another place the location appears is the Get Info window, opened with File > Get Info. The "Where" line shows the folder that contains the item. It is useful for reading a location, but for copying, the Option key method and the path bar are quicker and give you the full path in one step.
Getting a path from Terminal, and back again
When the path is going into Terminal anyway, there are shortcuts that skip the clipboard step entirely.
Drag the item into the Terminal window. Dropping a file or folder from the Finder onto a Terminal window types its path at the cursor. Spaces and other special characters are escaped with backslashes, so the result can be used in a command as it is.
Print the current folder. Inside a shell, pwd prints the working directory. To put it on the clipboard:
pwd | pbcopy
pbcopy copies whatever is piped into it. Note that pwd ends its output with a newline, so the clipboard holds the path plus a line break. If that matters, for example when pasting into a single line field, strip it:
pwd | tr -d '\n' | pbcopy
Go the other way. If you have a path and want to open it in the Finder, choose Go > Go to Folder, or press Shift-Command-G, which Apple's shortcut list describes as opening a Go to Folder window. Paste the path and press Return. From Terminal, open /path/to/folder opens a folder in a Finder window, and open -R /path/to/file opens the enclosing folder with the file selected.
open . is the shortest form of all: it opens the shell's current folder in a new Finder window, which is a quick way to confirm that the terminal is where you think it is.
Pasted paths also work in the Open and Save dialogs of almost every app. In one of those dialogs, press Shift-Command-G, or simply type / or ~, and a field appears where a full path can be pasted. Pressing Return jumps the dialog straight to that folder, which is far faster than clicking down through the sidebar when the folder is several levels deep. Dragging a folder from the Finder onto an open dialog does the same thing.
These are the routes worth memorizing if your day involves a terminal, since copying a path is often just the first half of a round trip between the Finder and the command line.
When the pasted path does not work
Copying the path is usually the easy part. Three situations cause the pasted path to fail or point somewhere unexpected.
Spaces and special characters
"Copy as Pathname" copies the raw path with no escaping. A folder named Client Work becomes /Users/yourname/Documents/Client Work. Pasted into a shell command without quotes, that is two arguments, and the command fails or acts on the wrong thing. The fix is to wrap the pasted path in quotes:
cd "/Users/yourname/Documents/Client Work"
Dragging into Terminal avoids this because the Finder escapes the spaces for you (Client\ Work). In code, quoting rules depend on the language, but the same raw path is what you start from.
One related trap catches people who shorten paths by hand. Inside double quotes, the shell does not expand ~, so cd "~/Documents/Client Work" fails with "no such file or directory". Either leave the tilde outside the quotes, as in cd ~/"Documents/Client Work", or use the full path that Copy as Pathname gives you, which never contains a tilde in the first place. Folder names that contain an apostrophe need the same care: double quotes handle them, single quotes do not.
iCloud Drive, Dropbox and other cloud folders
The names in the Finder sidebar are not always the names on disk. iCloud Drive appears as "iCloud Drive" in the sidebar, but its files live under ~/Library/Mobile Documents/com~apple~CloudDocs/. Dropbox and Google Drive installed through the system's File Provider integration live under ~/Library/CloudStorage/. On a Mac checked for this article, Dropbox sat at ~/Library/CloudStorage/Dropbox.
The practical effect is that a copied path from a cloud folder looks longer and stranger than the location shown in the Finder. That path is correct and works in Terminal and scripts. If you are typing a path by hand instead of copying it, the sidebar name will not work, and copying is the reliable way to get the real path.
Symbolic links
Some folders are links to other locations. On macOS, /tmp is a symbolic link to /private/tmp. Running realpath /tmp on the Mac checked for this article returned /private/tmp. Most tools follow the link and the two paths work the same, but tools that compare paths as text, such as some build tools, test runners and file watchers, can treat them as different places. When a path that looks right is rejected, run realpath on it and use the resolved form.
Copying paths regularly: Shortcuts, Automator and other tools
If you copy paths many times a day, a few options make it a single click.
A Quick Action. In the Shortcuts app or Automator, a Quick Action that receives files and folders from the Finder can copy their paths to the clipboard. It then appears in the right-click menu and under Quick Actions in the Finder, without holding Option. Building one takes a few minutes, and the result can be shared with colleagues as a file.
Path utilities. Several small apps add copy path commands with extra formats, such as a path relative to the home folder, a file:// URL, or a quoted path. They are worth considering if you regularly need one of those formats, since the Finder only produces the plain absolute path.
AppleScript. For scripts, POSIX path of converts a Finder location into a path. On the Mac checked for this article, osascript -e 'POSIX path of (path to desktop folder)' returned /Users/admin/Desktop/, with a trailing slash, which is how AppleScript marks a folder.
When copying paths is a symptom
For many readers the path is not the goal. It is a bridge between the Finder window where the file is visible and a terminal window, editor or AI coding agent where the work happens. The sequence is usually: find the folder in the Finder, copy its path, switch to Terminal, type cd, paste, press Return, and only then start working. Repeated many times a day, that bridge is a large share of the friction.
A file manager with a built-in terminal removes most of that bridge. Each folder in the window has its own shell already open in that folder, so there is nothing to copy and no cd to type. When a path is still needed, for a message or a config file, pwd | pbcopy in that terminal copies the folder you are looking at. One such app's features page describes the per-folder terminal and the sidebar that groups folders by meaning rather than by their location on disk, and its FAQ answers whether the terminal is a real shell (it runs your own shell). Everything on the Mac itself is free, as shown on its pricing page.
If your paths mostly go into documents or emails rather than a terminal, the Option key method is all you need.
What to do next
Try the Option key method once now: select any folder, right-click, hold Option, and choose Copy as Pathname, then paste it somewhere to see the format. Turn on the path bar with Option-Command-P so the current folder is always one Control-click away. If the path is headed for Terminal, get used to dragging items into the window instead, since it handles spaces for you. And the next time a pasted path fails, check the three causes in order: spaces that need quotes, a cloud folder whose real path differs from the sidebar name, and a symbolic link that realpath will resolve.
Frequently asked questions
What is the keyboard shortcut to copy a path on a Mac?
Select the file or folder in the Finder and press Option-Command-C. This is the shortcut for Copy as Pathname, the item that appears in the Edit menu or the right-click menu when you hold the Option key. The full path is copied to the clipboard.
Why is there no "Copy as Pathname" in my right-click menu?
The item only appears while the Option key is held down. Open the right-click menu first, then press and hold Option, and "Copy "name"" changes to "Copy "name" as Pathname". You can also Control-click a folder in the path bar, which Apple documents in the Mac User Guide.
How do I copy the path of the folder I am currently in?
Show the path bar with View > Show Path Bar or Option-Command-P. The current folder appears at the end of the path bar. Control-click it and choose Copy as Pathname. This works even when nothing is selected in the window.
Why does my copied path not work in Terminal?
The most common cause is a space in a folder or file name. Copy as Pathname does not add quotes or escapes, so wrap the pasted path in double quotes. Alternatively, drag the item into the Terminal window, which escapes spaces automatically. Cloud folders and symbolic links can also produce paths that differ from what the Finder shows.
Can I copy paths of several files at once?
Yes. Select several items in the Finder, hold Option, and choose Copy Items as Pathnames from the Edit menu or the right-click menu. Each path is placed on its own line, which is convenient for pasting into a script or a list.