Skip to main content

How to find and copy a file path on Mac

how to find and copy a file path on mac macbook notebook keys desk
Goumbik/Pixabay

Whether for troubleshooting a problem or for quick access, it's useful to know how to find and copy a file path on Mac. This places the path name on your clipboard for you to paste elsewhere, like in Notes as a reference or in Terminal for additional actions.

We’ll show you a few ways to locate and copy the path for a file or folder in macOS.

Difficulty

Easy

What You Need

  • Mac computer

File paths in Finder

One of the easiest ways to view a file path is in Finder on your Mac. Along with it, we’ll show you how to use the context menu to copy that path.

Step 1: Open Finder on your Mac and navigate to the file or folder you want to view.

Step 2: To simply see the file path, select View > Show path bar in the menu bar.

Show Path Bar in the Finder View menu.

Step 3: You’ll then see the path display at the bottom of the Finder window.

Path Bar in a Finder window on Mac.

Step 4: To copy the file path, right-click the item in Finder to display the context menu.

Right-click context menu on Mac.

Step 5: Hold the Option key while the context menu is open and select Copy [name] as Pathname.

The file path is then on your clipboard for you to paste where you wish.

Copy Pathname in the context menu on Mac.

File paths in Get Info

Another convenient location to view and copy a file path is with the Get Info tool.

Step 1: Select the item on your desktop or in Finder.

Step 2: Press Command + I or right-click and pick Get info.

Get Info in the context menu for a folder.

Step 3: When the Get Info window opens, expand the General section at the top and you’ll see the file path next to Where. Drag your cursor through the path to highlight it.

Path name next to Where in the Get Info window.

Step 4: Press Command + C to copy the path or right-click and choose Copy as Pathname.

Copy as Pathname in Get Info.

Step 5: With the path on your clipboard, you can then paste it where needed. The path should display correctly with the arrows replaced by forward slashes.

File path from Get Info pasted into Notes.

File paths in Go To Folder

You may only think of opening Finder’s Go To Folder tool when you need to navigate somewhere on Mac. But this nifty tool can also provide the file path of an item.

Step 1: With Finder active, select Go > Go to folder from the menu bar.

Go to Folder in the Finder Go menu.

Step 2: When the window opens, select the X on the right side of the Search bar to clear the field if necessary.

X in the Go To Folder search bar.

Step 3: Drag your file or folder into the Search bar at the top of the window. You’ll then see the path for the item in that field.

Dragging a folder into the Go To Folder window.

Step 4: From there, select the path and either use Command + C or right-click and pick Copy.

With the path on your clipboard, you can paste it where you like.

Copy in the shortcut menu in Go To Folder.

File paths in Terminal

If you’re a fan of using Terminal to perform actions on your Mac, then you can use this app to display and copy a file path as well.

Step 1: Open Terminal as you normally would or by going to the Utilities folder and selecting the application.

Terminal in the MacOS Utilities folder.

Step 2: When the Terminal window opens, drag your file or folder into it. You’ll then see the file path display in the window.

Dragging a folder into the Dragging a folder into the Terminal window.

Step 3: Right-click and choose Copy to place the path on your clipboard and paste it where needed.

Copy in the Terminal shortcut menu.

If you want to see the full path of a file or folder on Mac, you have a few easy ways to do so, as well as copying that path to your clipboard.

Sandy Writtenhouse
Sandy has been writing about technology since 2012. Her work has appeared on How-To Geek, Lifewire, MakeUseOf, iDownloadBlog…
How macOS Sonoma could fix widgets — or make them even worse
Apple's 15-inch MacBook Air on a desk, with macOS Sonoma running on its display.

At its Worldwide Developers Conference (WWDC) earlier this year, Apple revealed that interactive widgets would be coming to macOS Sonoma. That probably sounds like a tiny new feature, and sure, it’s not as earth-shattering as the Vision Pro announcement. But it could turn out to be one of the most divisive new features in the Mac operating system.

In macOS Sonoma, you’ll be able to plant widgets on your desktop instead of hiding them in the Notification Center. Many widgets will be interactive, letting you tick off to-do list items without opening the widget’s app, for example. And you’ll be able to run iOS widgets right on your desktop, even if that app isn’t installed on your Mac. It’s a pretty comprehensive overhaul. Depending on how well these interactive widgets work, though, we could be left with a bunch of annoying distractions or a set of super-helpful timesavers. The way Apple handles them is going to be vital.
We've been here before

Read more
Apple just gave Mac gamers a big reason to be excited
Craig Ferguson introducing Mac Gaming at WWDC.

When Apple announced it would revolutionize the world of Mac gaming at its Worldwide Developers Conference (WWDC) in June, many people were skeptical. But the latest update to the company’s Game Porting Toolkit has made some important changes to how games run on the Mac -- and the results are impressive.

The toolkit allows developers to move their Windows games across to macOS Sonoma. Games makers can test out how well their products run on Apple’s hardware and find out what they need to do to make the jump, something that Apple says ends up “significantly reducing the total development time.”

Read more
Have an iPhone, iPad, or Apple Watch? You need to update it right now
iPhone 14 Pro Max against a red background.

If you own an Apple product — be in the iPhone, iPad, Apple Watch, or a Mac — you should update it immediately. Why? Apple has begun rolling out updates to all of its devices with fixes for a serious security vulnerability.

The security vulnerability is known as CVE-2023-32434, and it has to do with the kernel privileges of Apple devices. Per Apple's website, the vulnerability allows third-party apps to "execute arbitrary code." In other words, if a bad actor knows how to exploit this vulnerability, they could potentially gain access to your Apple device and wreck havoc.

Read more