How to Get the Path of a File on a Mac

Finding the full file path on a Mac isn't immediately obvious — Apple tends to hide these details to keep the interface clean. But once you know where to look, there are several reliable ways to reveal exactly where any file lives on your system. The right method depends on what you're doing with that path and how comfortable you are with different parts of macOS.

What Is a File Path on Mac?

A file path is the complete address of a file or folder within your Mac's directory structure. On macOS, paths follow Unix conventions and look something like this:

/Users/yourname/Documents/ProjectFolder/report.pdf

Every path starts from the root directory (/) and works its way down through nested folders. Understanding this structure matters when you're working in Terminal, scripting, troubleshooting apps, or sharing file locations with colleagues.

Method 1: Copy the File Path from Finder

This is the fastest method for most users and requires no Terminal knowledge.

  1. Select the file or folder in Finder by clicking it once.
  2. Right-click (or Control-click) on the file.
  3. Hold the Option key — you'll see "Copy [filename]" change to "Copy [filename] as Pathname."
  4. Click that option.

The full Unix-style path is now in your clipboard, ready to paste wherever you need it.

Alternatively, you can select the file and use the keyboard shortcut Option + Command + C to copy the path directly.

Method 2: View the Path Bar in Finder

If you want to see the path rather than copy it:

  1. Open a Finder window.
  2. Go to View → Show Path Bar in the menu bar.
  3. A strip appears at the bottom of the Finder window showing the full folder hierarchy for whatever file or folder is selected.

You can also double-click any folder in the Path Bar to navigate directly to it. This is useful when you want to visualize where something lives without copying or typing anything.

Method 3: Use the Get Info Window

  1. Select the file in Finder.
  2. Press Command + I (or right-click → Get Info).
  3. Look for the "Where:" field under the General section.

This shows the folder path that contains the file — not the full path including the filename itself. It's handy for quickly identifying a file's parent directory, but less useful if you need the complete path for scripting or Terminal use.

Method 4: Use Terminal to Find the File Path 🔍

Terminal gives you more flexibility, especially when dealing with hidden files or automating workflows.

Drag and drop method:

  1. Open Terminal (found in Applications → Utilities).
  2. Type cd (with a space after it) but don't press Enter.
  3. Drag any folder from Finder directly into the Terminal window.
  4. The full path auto-fills. Press Enter to navigate there.

You can also drag a file into Terminal after any command that expects a path (like open or cat) and the full path will be inserted automatically.

Using the pwd command: Once you've navigated to a folder in Terminal, type pwd and press Enter. This prints the present working directory — the full path of wherever you currently are in the file system.

Method 5: Enable Full Path in Finder's Title Bar

macOS can display the full path of the current folder in the Finder title bar permanently:

  1. Open Terminal.
  2. Paste this command and press Enter:
  1. Then restart Finder by running:

After this, every Finder window will show the full path of the current folder in its title bar. To reverse it, run the same command but replace YES with NO.

Comparing Methods at a Glance

MethodShows Full PathIncludes FilenameRequires TerminalBest For
Copy as PathnamePasting paths into apps
Path BarVisual navigation
Get InfoQuick parent folder check
Drag into TerminalTerminal commands
Title Bar setting✅ (one-time)Always-visible reference

What Affects Which Method Works Best for You

A few factors shift which approach makes the most sense:

  • How often you need paths — someone who occasionally pastes a path into an app will be fine with the Option+right-click method. Developers or sysadmins working in Terminal daily may prefer the drag-and-drop shortcut or pwd.
  • macOS version — the exact wording and location of some menu options can vary slightly between macOS versions. The core methods above work across modern macOS releases, but interface details may differ.
  • Whether you're dealing with hidden files — files beginning with . (dot files) don't appear in Finder by default. You'll need Terminal or Command + Shift + . to reveal and work with them. 🗂️
  • Use case — pasting a path into a script, sharing it with a teammate, or referencing it in documentation all carry slightly different formatting expectations (some tools expect escaped spaces, others don't).
  • Comfort with Terminal — the Terminal methods are more powerful and precise, but they introduce a layer of complexity that not every user needs or wants.

The methods themselves are straightforward. What varies is which one fits your workflow, your macOS setup, and how you plan to use the path once you have it.