Copying a path to the clipboard in one move

To copy a file or folder path to the clipboard from the Finder on a Mac, select the item and press Option+Command+C. The full path, such as /Users/name/Documents/report.pdf, goes to the clipboard as plain text, ready to paste anywhere. The same command sits in the Edit menu as Copy as Pathname, but it only appears while the Option key is held, which is why so many people never find it. This guide covers that shortcut and six other ways to get a path out of the Finder, what happens when several files are selected, and why a pasted path so often breaks in Terminal. Menu names and shortcuts were checked on October 9, 2026, against the Finder in macOS 27.0.1 and Apple's own documentation.

Why the command is hard to find

Open the Finder's Edit menu and there is Copy, Paste and Select All, but nothing about paths. Right-click a file and the menu offers Copy, but again no path. The command exists in both places. It is an alternate item that replaces Copy only while Option is held down.

The menu definitions inside the Finder on macOS 27.0.1 list Copy as Pathname as exactly that: an alternate for Copy, with the key equivalent Option+Command+C. Apple's general Mac keyboard shortcuts page does not include it, so a search through Apple's shortcut list comes up empty as well. The command is documented elsewhere, in Apple's Terminal guide, which treats it as a tip for command-line users:

"In a Finder window, right-click a file or folder, press and hold the Option key, then choose 'Copy [file or folder name] as Pathname.'" That line comes from Specify files and folders in Terminal.

Once it is known to exist, the command takes one keystroke. The rest of this guide is about getting the most out of it.

Seven ways to get a path from the Finder

Each of these works on a stock Mac with nothing installed.

1. The keyboard shortcut

Select one item in a Finder window or on the desktop, then press Option+Command+C. Paste with Command+V. This is the fastest method and the one to learn first.

The Finder has to be the active app. If another app is in front, the same keys go to that app instead.

2. The Edit menu

Select the item, open Edit in the menu bar, then press and hold Option. Copy changes to Copy as Pathname. Click it while still holding Option.

3. The right-click menu

Control-click (or right-click) the item. The menu shows Copy "name". Hold Option and it becomes Copy "name" as Pathname. This is the method Apple's Terminal guide describes.

4. The path bar

Choose View, then Show Path Bar, or press Option+Command+P. A strip along the bottom of the window shows every folder from the disk down to the current one. Control-click any folder in that strip and choose Copy "folder" as Pathname. Apple's guide to getting file, folder and disk information lists this method.

The path bar is the right tool when the goal is the path of the current folder or one of its parents, with no file selected.

5. Dragging into Terminal

Drag a file or folder into a Terminal window and its absolute path appears on the command line, according to Apple's page on dragging items into a Terminal window. The same page notes that a folder can also be dragged from the title bar of a Finder window. Paths entered this way have spaces escaped with a backslash, so they work in the shell as they are.

This does not put anything on the clipboard, but when the destination is Terminal anyway, it skips a step.

6. Copying the current directory from Terminal

The reverse direction is common too: Terminal is already in a folder and the path is needed elsewhere. macOS includes pbcopy, which sends its input to the clipboard:

pwd | pbcopy

That copies the current directory's path. Adding tr -d '\n' in the middle removes the trailing line break if it gets in the way.

7. A custom shortcut

Any menu command can be given a different key. Apple's guide to creating keyboard shortcuts for apps has the steps: System Settings, Keyboard, Keyboard Shortcuts, App Shortcuts, then the add button. Choose Finder, type the menu title exactly as it appears, and press the new keys. The guide warns that a combination already used by another command will not work, so test it after setting it up.

Copying the paths of several files at once

Select more than one item and the command changes its wording. With three files selected and Option held, the Edit menu reads Copy 3 Items as Pathnames. The Finder's English strings on macOS 27.0.1 include that plural form, and every selected path goes to the clipboard in one go.

That makes a few jobs quick:

  • Sending a list of delivered files, with their locations, in an email or chat message.
  • Handing several source files to an AI chat tool in one paste.
  • Building a file list in a spreadsheet, one path per row.

When those paths go into Terminal, however, each one carries the same risk described in the next section.

Why a pasted path breaks in Terminal

A path copied with Copy as Pathname is raw text. Nothing is escaped or quoted. That is fine for an email, a document or a chat window. It is a problem for a shell.

The default shell on macOS is zsh, and it treats a space as the boundary between two arguments. A folder named Client Files therefore becomes two separate names, Client and Files. On macOS 27.0.1 with zsh 5.9, listing a folder whose name contains a space, without quotes, produces two errors, one for each half:

ls: ./Client: No such file or directory
ls: Files: No such file or directory

Apple's Terminal guide addresses this directly. It advises avoiding spaces in file names, and says that when they are present, "you might need to add single or double quotation marks around pathnames that contain them", or put a backslash before the character, so My Disk becomes "My Disk" or My\ Disk.

Spaces are common in real paths. Many apps create folders with spaces in their names, downloaded files often have them, and the real location of iCloud Drive is ~/Library/Mobile Documents/com~apple~CloudDocs, which has one in the middle.

Three ways to keep the path intact

Quote it while pasting

Type a double quote, paste, then type another double quote:

cd "/Users/name/Client Files/2026"

This works for any path that does not itself contain a double quote character.

Read the clipboard directly

pbpaste prints the clipboard. Wrapping it in quotes passes the copied path as a single argument without pasting at all:

cd "$(pbpaste)"

The routine becomes: select a folder in the Finder, press Option+Command+C, switch to Terminal, run that line. Saved as an alias in ~/.zshrc, it shrinks to two or three characters.

Drag instead of copying

For a single item headed to Terminal, dragging is the least error-prone option, because the path arrives already escaped. The cost is having both windows visible at once.

Why the copied path can look different from the window

People are sometimes surprised that the path on the clipboard does not match what the Finder window shows. Three differences account for almost every case.

The disk name is missing. The path bar starts with the disk, usually Macintosh HD, but the copied path starts with a single slash. On macOS the startup disk is the root of the file system, so its name never appears in a path. An external drive is different: it shows up under /Volumes/, followed by the drive's name.

Folder names can be translated. When the Mac's language is not English, the Finder shows standard folders such as Documents, Downloads and Applications under their translated names. The copied path still uses the English names, because those are the real folder names on disk. A Mac set to Japanese, for example, shows a translated name for the Documents folder while the path reads /Users/name/Documents.

iCloud Drive lives somewhere else. The sidebar shows iCloud Drive as if it were a top-level location. The copied path reveals where it actually sits inside the user's Library folder, under Mobile Documents.

None of these is an error. The window shows names chosen for people, and the path shows the names the system uses. Scripts, terminals and configuration files all need the second kind.

The same copied path also works outside Terminal. In any Open or Save dialog, Shift+Command+G opens a Go to Folder field there too, so a path copied from the Finder can be pasted straight into a dialog in another app to jump to the right place.

Going the other way: from a path to a folder

The partner skill is opening a folder from a path that arrived as text, for example in a chat message or in Terminal output.

In the Finder, press Shift+Command+G to open Go to Folder, paste the path and press Return. Paths that begin with a tilde work too. Apple covers this in Go directly to a specific folder.

From Terminal, open . shows the current directory in a Finder window, and open followed by any quoted path opens that location.

From the Finder to Terminal, Terminal installs two Services, New Terminal at Folder and New Terminal Tab at Folder. Control-click a folder, open Services and choose one. Terminal opens already inside that folder, with no path copied and no cd typed.

When copying paths is the real bottleneck

All of these methods make each copy faster. None of them reduces how many times the copy happens.

For people who work with files, a terminal and AI tools side by side, the loop is familiar. Select a folder, press Option+Command+C, Command+Tab to Terminal, type cd ", paste, close the quote, then switch back. Each pass takes a few seconds. Repeated dozens of times a day, with the occasional retype after a space breaks the path, it adds up.

One way to remove the loop is a file manager with a built-in terminal, where each folder has its own terminal in the same window and the terminal follows the folder that is selected. With the shell already in the right place, there is no path to copy. Atriens works this way: one terminal per folder, a sidebar that can group folders from different drives, and a command palette on Shift+Command+P. Everything it does on the Mac is free, and payment only applies to using it from an iPhone or iPad, as the pricing page explains.

A sensible order is to learn Option+Command+C and cd "$(pbpaste)" this week, then count how often the copy and switch loop still happens. If the count stays high, the problem is the window layout, not the shortcut.

Frequently asked questions

Why does Option+Command+C do nothing?

The Finder must be the active app, so click a Finder window or the desktop first. An item also has to be selected. If it still fails, another shortcut may be using the same keys. Check System Settings, Keyboard, Keyboard Shortcuts for a conflict.

Can the copied path start with a tilde instead of /Users/name?

Not directly. Copy as Pathname always copies the full path from the root of the disk. Terminal accepts the full path without any change. For a shorter version in a document, replace the /Users/name part with a tilde after pasting.

Does the copied path include the file name?

Yes. Copying a file gives the full path including the file name and extension. Copying a folder gives the path to that folder. Use the path bar method to copy a folder path when no file is selected.

How do you copy a path with quotes already around it?

The Finder has no built-in option for that. The simplest workaround is to run cd "$(pbpaste)" in Terminal, which quotes the clipboard contents for the shell. Dragging the item into Terminal is another, since the path arrives with spaces escaped.

Does this work for files in iCloud Drive?

Yes. The copied path points to the real location under /Library/Mobile Documents/comapple~CloudDocs. Because that path contains a space, it needs quotes when used in Terminal.

Back to all posts