How to Find the File Path on a Mac

Knowing where a file actually lives on your Mac — its file path — is one of those things that feels mysterious until you know the trick. Once you do, it becomes second nature. Whether you're troubleshooting an app, writing a script, or just trying to tell someone exactly where a document is stored, the file path gives you that precise address within macOS's folder hierarchy.

What Is a File Path on Mac?

A file path is the exact location of a file or folder within your Mac's storage system, written as a sequence of folder names separated by forward slashes (/). For example:

/Users/yourname/Documents/ProjectFiles/report.pdf 

Every file on your Mac has one. The path starts from the root of the drive (/) and drills down through each nested folder until it reaches the file itself. macOS uses a Unix-based file system, which is why paths look different from Windows paths — forward slashes instead of backslashes, and no drive letters.

Method 1: Use the Finder Status Bar

The quickest passive method is enabling the Path Bar in Finder.

  1. Open Finder
  2. Click View in the menu bar
  3. Select Show Path Bar

A strip appears at the bottom of the Finder window showing the full folder hierarchy for whatever file or folder you've selected. You can even double-click any folder in that bar to jump straight to it. It stays visible as you navigate, so you always know where you are.

Method 2: Copy a File Path from Finder 🗂️

If you need the actual text of a path — to paste into Terminal, a script, or a document:

  1. Select the file or folder in Finder
  2. Right-click (or Control-click) to open the context menu
  3. Hold the Option key — the menu item "Copy [filename]" changes to "Copy [filename] as Pathname"
  4. Click it

You now have the full file path on your clipboard, ready to paste anywhere.

This Option-key trick is one of the most useful hidden shortcuts in macOS and works consistently across macOS versions.

Method 3: Get Info Window

Right-click any file in Finder and choose Get Info (or press Command + I). In the panel that opens, look at the Where field under General. It shows the path of the folder containing the file — not the full path including the filename, but close enough for most needs.

This method is best when you just need to confirm which folder something lives in, rather than needing to copy the full path as a string.

Method 4: Use Terminal

For users comfortable with the command line, Terminal gives you precise path information instantly.

  • Type pwd (print working directory) to see the path of your current location
  • Drag and drop any file directly into a Terminal window — macOS automatically types out its full file path
  • Use ls to list files in a directory and cd to navigate

The drag-and-drop method is particularly useful: you don't need to type anything. Just drag the file from Finder into the Terminal window, and the complete path appears.

Method 5: Spotlight and Quick Look

Spotlight Search (Command + Space) finds files quickly, but it doesn't show the full path by default. However, if you hover over a result in Spotlight, a small preview appears. Hold Command while a result is highlighted to see its folder location displayed at the bottom of the Spotlight window.

For a full path, this is a quick way to identify where something is before opening Finder.

Path Display in Specific Apps

Some apps show file paths natively:

ContextWhere to Find the Path
Terminalpwd command or drag-and-drop
FinderPath Bar (View menu) or Option + right-click
XcodeFile inspector panel on the right
VS CodeRight-click a file → Copy Path
TextEdit / PreviewTitle bar — click the filename to see folder hierarchy

In many macOS apps, clicking the document title in the title bar (the filename at the very top of the window) reveals a dropdown showing the full folder path. This works in Pages, Numbers, Preview, and several other native apps.

Understanding Relative vs. Absolute Paths

Two path types come up if you work with scripts or development tools:

  • Absolute path: Starts from the root (/), giving the full location — e.g., /Users/yourname/Desktop/file.txt
  • Relative path: Defined in relation to a current working directory — e.g., ./Desktop/file.txt

For everyday file-finding, absolute paths are what you want. Relative paths matter more in coding, automation, and shell scripting contexts.

The Variables That Change How This Works 🔍

The method that suits you depends on a few factors:

  • How you intend to use the path — pasting into Terminal, sharing with a developer, troubleshooting an error, or writing documentation all call for different approaches
  • Your macOS version — the Path Bar and Option-key copy behavior have been consistent for years, but small UI details vary across macOS versions (Ventura, Sonoma, Sequoia)
  • Your comfort with Terminal — command-line methods are faster and more powerful, but only if you're already familiar with navigating the shell
  • The app you're working in — third-party apps vary widely in whether they expose file paths natively

Most Mac users find the Finder Path Bar plus the Option + right-click copy method covers nearly everything. Power users and developers tend to rely on Terminal for its speed and scriptability. Where those methods feel like the right fit depends entirely on what you're trying to do and how you work day to day.