The quickest way to see a file's full path
The fastest method is to right-click the file, hold down the Option key, and select "Copy as Pathname" from the menu. This copies the complete path to your clipboard — for example, /Users/yourname/Documents/ProjectFolder/report.pdf — which you can then paste into a text editor, terminal, or anywhere else you need it.
If you don't see "Copy as Pathname" in the menu, your Mac is running an older version of macOS. The alternative method works on any Mac: open the file's Get Info window by right-clicking and selecting "Get Info," then look for the "Where" line near the top. It shows the folder path, though not the filename itself — you'll need to add the filename to the end if you want the complete path.
For files you use often, you can also drag the file icon directly into a text document or terminal window, and the full path will appear automatically.
Key Takeaways
- Right-click a file, hold Option, and select "Copy as Pathname" to copy its full path to your clipboard in one step.
- The Get Info window shows the folder path under "Where," though you'll need to add the filename yourself for the complete path.
- Dragging a file into a text editor or terminal window automatically inserts its full path.
- The path always starts with a forward slash and shows every folder from the root of your drive to the file itself.
- Understanding file paths helps you locate files in Finder, use them in terminal commands, or share exact locations with others.
What a file path actually shows you
A file path is a set of directions from the root of your hard drive to the file you're looking for. On a Mac, it always starts with a forward slash and lists each folder you'd have to open to reach the file. For example, /Users/yourname/Documents/Work/2024/budget.xlsx means: start at the root, go to Users, then yourname, then Documents, then Work, then 2024, and you'll find budget.xlsx there.
The part before the last forward slash is called the directory path — it's just the folders. The part after the last slash is the filename. When you copy a pathname, you get both together. This matters because some tools ask for just the directory path, while others need the full path including the filename.
Your username always appears in the path as part of /Users/yourname/. You might also see paths that start with /Applications (for installed programs), /Library (for system files), or /Volumes (for external drives). These tell you where on your Mac the file lives.
Using the Finder window's path bar
If you have the file open in Finder, you can see its path without right-clicking. Go to the View menu at the top and select "Show Path Bar." A thin bar will appear at the bottom of the Finder window showing the complete folder path to whatever folder you're currently viewing.
Click any folder name in that path bar to jump directly to that location. This is useful when you're navigating through many nested folders and want to backtrack quickly. The path bar doesn't show the filename itself — only the folders — but it gives you a clear visual of where you are in your file system.
You can also enable "Show Status Bar" from the same View menu to see how many items are in the current folder and how much space they use. These two bars together give you much more information about what you're looking at without needing to open Get Info.
Finding paths for files in the Terminal
If you use Terminal, you can see the full path of any file by typing pwd (print working directory) to see which folder you're currently in, then typing ls -la to list all files in that folder with their details. However, this shows only the filename, not the full path.
To get the full path of a file in Terminal, type ls -la /path/to/folder where you replace /path/to/folder with the actual folder path. Or use the drag method: type ls -la followed by a space, then drag the file into the Terminal window. The full path will appear automatically, and you can press Enter to run the command.
Another approach is to type find ~ -name "filename" to search your entire home directory for a file by name. This shows the full path of every file matching that name. The tilde (~) is a shortcut for your home directory, which is usually /Users/yourname/.
Locating files you can't find in Finder
Some files on your Mac are hidden by default — they usually start with a dot, like .bashrc or .DS_Store. Finder hides these to reduce clutter, but you can reveal them. Press Command+Shift+Period (the period key) while a Finder window is open, and hidden files will appear. Press the same keys again to hide them.
If you're looking for a file but can't remember its name, use Spotlight search. Press Command+Space, type part of the filename or what you remember about it, and Spotlight will show matches. Click a result to see its full path in the Finder window that opens, or right-click it and select "Copy as Pathname."
For files buried deep in your system, the Terminal command find ~ -name "*partofname*" is more powerful than Spotlight. Replace partofname with whatever you remember — the asterisks act as wildcards. This searches every folder and subfolder under your home directory and shows the complete path of each match.
Understanding paths for external drives and network locations
When you connect an external drive or USB stick, its path starts with /Volumes/ followed by the drive's name. For example, /Volumes/MyBackup/Documents/file.txt. This is different from files on your main hard drive, which start with /Users/. If you eject the drive, any paths pointing to it will no longer work.
Network drives and cloud storage folders like iCloud Drive or Google Drive appear in Finder but have different path structures. iCloud Drive files are usually in /Users/yourname/Library/Mobile Documents/com~apple~CloudDocs/, which is a long path that changes depending on the app. Files in Dropbox or Google Drive appear in your home directory under their app folder name.
When sharing file paths with someone else, remember that paths with /Users/yourname/ won't work on their computer — their username is different. It's better to share relative paths (like "Documents/Work/budget.xlsx") or to use cloud links instead.
Why you might need a file's path
Knowing a file's path is useful in several situations. If you're writing a script or using Terminal commands, you need the exact path to tell the computer which file to work with. If you're troubleshooting an issue with tech support, providing the full path helps them understand exactly which file you mean. If you're setting up a backup or sync tool, it often asks for the path to the folder you want to back up.
Some applications also ask for file paths when you're importing data or linking to external files. Rather than browsing through folders, you can paste the path directly. This is faster when you already know where the file is and just need to tell the program how to find it.
Understanding paths also helps you organize your own files better. When you see the full path, you get a clearer picture of how deep your folder structure goes and whether you're burying important files too many levels down.
Frequently Asked Questions
Can I change a file's path by moving it to a different folder?
Yes. When you move a file to a different folder in Finder, its path changes automatically. The filename stays the same, but the directory part of the path updates to reflect its new location. Any shortcuts or links pointing to the old path will break, so update them if needed.
What does the tilde (~) mean in a file path?
The tilde is a shortcut for your home directory, which is /Users/yourname/. In Terminal, you can type ~/Documents/file.txt instead of the full path. It's faster and works the same way.
Why do some paths have spaces in folder names?
Folder names can contain spaces — for example, /Users/yourname/My Documents/. In Terminal, spaces need to be escaped with a backslash or the whole path needs to be in quotes. In Finder and most Mac applications, spaces in paths work without any special handling.
Is there a way to see the path of a file I'm currently editing?
Most applications show the filename in the title bar at the top of the window. Some also show the full path. In many apps, you can click and hold on the filename in the title bar to see the folder path, or check the File menu for a "Show in Finder" option that opens the file's location.
What happens if I delete a folder that's part of a file's path?
The file is deleted along with its folder. If you have a path written down somewhere, that path will no longer work. This is why it's important to keep important files in stable locations and back them up — moving or deleting parent folders affects everything inside them.