Mac OS · macOS

Copy the Full Path of a File or Folder on Mac

Source-checked About 10 minutes

Answer

Show Finder's Path Bar or hold Option while opening the context menu to copy an item as a pathname, then paste it where needed.

Guide steps8 steps
  1. Check prerequisites and the intended result
  2. Use the supported method
  3. Locate the item in Finder
  4. Show the visible path
  5. Copy the pathname
  6. Paste and verify
  7. Check that the change worked
  8. Troubleshoot a macOS pathname

Check prerequisites and the intended result

Before changing a macOS pathname, locate the exact Finder item and decide whether the recipient needs a pathname, a clickable file, or a shareable cloud link. Write down the current value before changing it so you can restore only that setting if the intended result does not appear. Keep the relevant account, app, or system version available if official support is needed. Confirm the saved choice after closing and reopening the relevant settings panel.

Use the supported method

Use Copy as Pathname for shell or text input; a local path does not grant another person access to the file.

Locate the item in Finder

Open Finder and select the exact file or folder without moving or renaming it.

Show the visible path

Choose View > Show Path Bar to display the location at the bottom of the Finder window.

Copy the pathname

Hold Option, Control-click the item, and choose Copy as Pathname when available.

Paste and verify

Paste into Terminal or a document and preserve quotation marks or escaping when the path contains spaces or special characters.

Check that the change worked

Pasting into Terminal with proper quoting or into Get Info identifies the same file or folder without changing it.

Troubleshoot a macOS pathname

If spaces break an unquoted command, the item moved after copying, or a network or cloud path is unavailable on another Mac, stop broad resets and return to the last known state. Capture the exact error, versions, account or device scope, and the failed step before using the official support channel.

Video walkthrough

Sources and verification

Checked against official documentation on . Scope: macOS.

Follow the linked first-party guidance if labels differ after a platform or app update.

Continue with

Browse more macOS tutorials