How to find the path of a file on Mac
The quickest way to see a file's path is to select it in Finder and choose View › Show Path Bar: the folders that lead to the file appear along the bottom of the window. To copy the path as text, Control-click the file, hold ⌥ Option and choose Copy "name" as Pathname. This guide covers those two moves, plus Get Info, Spotlight, the Terminal and a search app that shows the path of every result.
1. Show the path bar in Finder
A path is the chain of folders between the top of your disk and the file, written with slashes: /Users/anna/Documents/Taxes/2025.pdf. Finder does not show it until you ask:
- Open a Finder window and select the file.
- Choose View › Show Path Bar. A row of folders appears near the bottom of the window, from your disk down to the folder the file is in. To see it only for a moment, hold ⌥ Option instead.
- Click any folder in the path bar to open it. Control-click a folder there and choose Copy "folder" as Pathname to copy that folder's path.
The path bar is also the fastest way to see where a Finder search result lives: select the result and read the bar. View › Show Status Bar adds a second row with the item count and free space, which some people confuse with the path bar.
2. Get Info
Select the file and press ⌘ I, or choose File › Get Info. In the General section the Where line shows the folder that holds the file. The text can be selected and copied, and it is written with the full path, so it is the easiest place to read a location when the path bar is off.
Get Info also works on several selected items at once, but then you get one window per item. For a quick look at a single file, press Space for Quick Look instead; its title shows the file name, not the path.
3. Copy the file path as text
You need the path as text when a support article asks for it, when you type it into the Terminal, or when you paste it into Go to Folder on another Mac. Three ways, from most to least used:
- Copy as Pathname: Control-click (or right-click) the file, then hold ⌥ Option. The Copy "name" item in the menu changes to Copy "name" as Pathname. Choose it and paste with ⌘ V. With several files selected the item reads Copy n Items as Pathnames, and you get one path per line.
- Drag into the Terminal: drag the file or folder from Finder into a Terminal window and its absolute path appears on the command line, with spaces already escaped. Dragging the small icon in a Finder window's title bar does the same for the folder you are looking at.
- Get Info: select the text on the Where line and copy it. This gives you the folder, not the file, so add the file name yourself.
To go the other way and open a path someone sent you, press ⇧ ⌘ G in Finder, paste the path and press Return. ~ at the start stands for your home folder, so ~/Documents and /Users/anna/Documents are the same place on Anna's Mac. More on that in how to find files on Mac.
4. Spotlight
Press ⌘ Space, type part of the file name and select the result. Hold ⌘ and the file's location appears with the result. Press Return to open the file. Spotlight shows the path for one result at a time, and only for files it has indexed; if a file you know exists never shows up, see Finder or Spotlight search not working.
5. Terminal
The Terminal always works in paths, so it is the place to get an exact one. Open it from /Applications/Utilities and try these; none of them changes anything:
# the folder you are in
pwd
# the full path of every item in the current folder
ls -d "$PWD"/*
# the real path of a file, with ~ and symbolic links resolved
realpath ~/Documents/report.pdf
# find a file by name and print its path (Spotlight index, fast)
mdfind -name report.pdf
# the same without Spotlight (walks your home folder, slower)
find ~ -name "report.pdf" 2>/dev/null
# copy a path to the clipboard
realpath ~/Documents/report.pdf | pbcopy
# show a file in Finder from its path
open -R ~/Documents/report.pdf
Put quotes around a path that contains spaces, or drag the file into the window and let the Terminal escape them. mdfind only sees what Spotlight has indexed, and find prints "Operation not permitted" for protected folders such as ~/Library/Mail unless the Terminal has Full Disk Access; the 2>/dev/null above hides those lines.
6. See the path of every result with Everything Locator
Finder and Spotlight show one path at a time, after you have found the file. Everything Locator shows a Path column next to every result as you type, so when a file has the same name in several folders you see all the copies and where each one is. It indexes the folders you grant and searches names and paths; on the Mac, content: can also ask Spotlight for a word inside files. A term containing / matches the path, which is how you narrow a search to one folder tree:
| Search | Finds |
|---|---|
invoice ext:pdf | every PDF with "invoice" in its name, with the folder of each in the Path column |
~/Documents/ invoice | the same, only inside your Documents folder |
/Projects/ budget | "budget" files inside any folder named Projects, wherever that folder is |
parent:~/Desktop ext:png | PNG images directly on the Desktop, not in its subfolders |
report.docx dm:thisweek | which copy of report.docx you edited this week |
len:>60 ext:pdf | PDFs with very long names, which often break when a path is pasted into another app |
Select a result and press ⇧ ⌘ C to copy its full path, ready to paste into a support ticket, Go to Folder or the Terminal. ⌘ Return shows the file in Finder with the path bar, and Return opens it. Files under ~/Library and other hidden folders only appear after you turn on Index hidden files and folders in Settings › Indexing; see how to find the Library folder for what lives there.
FAQ
How do I find the path of a file on a Mac?
Select the file in Finder and choose View › Show Path Bar. The folders leading to the file appear at the bottom of the window. Or press ⌘ I and read the Where line in the Get Info window.
How do I copy a file path on a Mac?
Control-click the file, hold ⌥ Option and choose Copy "name" as Pathname. Paste it wherever you need it. Dragging the file into a Terminal window also inserts its path.
Where is the path bar in Finder?
It is hidden by default. Choose View › Show Path Bar to keep it on, or hold ⌥ Option to show it only while the key is down. It appears just above the bottom edge of every Finder window.
What does the ~ in a path mean?
~ is short for your home folder, /Users/your-name. ~/Downloads is the Downloads folder in your home folder. Finder's Go to Folder and the Terminal both understand it, and so does Everything Locator's search box.
Why can't I see the whole path in Finder?
Finder shows the path bar only when it is turned on, and it names folders the way Finder displays them, so your home folder appears under your name and hidden folders are skipped. For the exact path, with every slash, use Get Info, Copy as Pathname or the Terminal. How to find hidden files on Mac explains which folders Finder hides.
See the path of every file as you type
Everything Locator searches your whole Mac by name and shows where each result lives, with one key to copy the path.