roger.tips
← All Tips
πŸ’»Mac⚑Productivity 1 min read

Copy Any File Path in Finder with One Shortcut

TL;DR
Right-click while holding Option β€” "Copy as Pathname" appears in Finder. The fastest way to grab a full file path for Terminal or scripts.

Copy file path in Finder

How to do it

  1. Select a file or folder in Finder.
  2. Right-click (or Ctrl+click) on it.
  3. Hold down the Option key (βŒ₯) β€” the context menu changes.
  4. Click "Copy as Pathname".
  5. The full path (e.g. /Users/roger/Documents/file.pdf) is now in your clipboard.

Alternative: Drag & Drop into Terminal

Even faster: open Terminal and drag a file from Finder directly into it. The path is inserted automatically β€” with proper escaping for spaces.

Why this works

macOS hides some useful menu options behind modifier keys like Option (βŒ₯), Shift (⇧), or Command (⌘). "Copy as Pathname" is one of them β€” it only appears while you hold Option.

Good to know

  • Paths with spaces are automatically quoted when you drag into Terminal.
  • You can paste the path directly into shell commands, scripts, or documentation.
  • Works on every macOS version since El Capitan (2015).

Was this helpful?

Be the first to rate this tip!


WhatsApp