How to get the path of a file in Mac?

Getting sick of searching for your files? Can’t remember what the file name was? Fear not, as there are plenty of ways to look up a file path on your Mac.  

 

As you use your Mac to download, create, and store, you accumulate more files, leaving your device cluttered. It can be hard to find a specific file path when your Macbook stores many unwanted files.  

 

The great news is, finding a file path can be simple. Especially with third-party software such as MacKeeper’s Duplicates Finder, which allows you to determine which duplicates/apps you wish to delete. That way, you can easily  find and delete the copies, letting you locate path files.

 

In this article, You’ll know  exactly how to get the path of a file in your Mac.  

 

BEFORE WE BEGIN

 

A common cause of not being able to find a file/file path is duplicate files. They make it harder to locate files and clutter your Mac causing it to run slowly. With MacKeeper’s Duplicate Finder, you’re able to delete similar copies (with no harm to the originals) and free up space so your Mac can run smoothly, just like it’s supposed to.

 

Here’s how to find duplicate files with Duplicate Finder:

  1. Download MacKeeper
  2. Open MacKeeper and select Duplicates Finder in the side pane
  3. Select Start Scan
  4. Click on each tab to delete specific duplicates, then check the box next to the category to delete them
  5. Now, click Remove Selected > Remove.

Display the path of a file in the Info window

If you know which file you want to source later, you can find the whereabouts of it quite simply.  

 

Follow these steps to display the path of a file in the info window:

 

1. Find the specific file

 

2. Right-click the file

 

3. Select Get Info

User interface

4. Under Where you’ll find the location.

User Interface

Show a file path on Mac context menu

The context menu may be a quick solution to finding your file/folder. Here’s how you show and copy a file path on Mac’s context menu:

 

1. Open Finder

 

2. In the menu bar, select View

 

3. Select Show Path Bar (This will locate the file path for your chosen file in the Finder window. Now, if you attempt to duplicate the text in the bottom, it doesn’t work. How might you copy the path?)

Finder User Interface

4. Hold the Control button and click on your selected file you wish to copy in Finder

 

5. Hit the Option key (In the Finder menu that comes up after the first step, you’ll then have Copy change into Copy [ your file path name] as Pathname)

 

6. Select Copy.

Find a file path from Terminal

In Terminal, you can execute pretty much all functions, including finding files. With a bit of luck, this step will allow you to surface your file.

 

Here’s how to find a file path from Terminal:

  1. Open Terminal
  2. Now, type in the command: sudo su
  3. Hit Return on your keyboard
  4. Enter your Mac password
  5. Hit Return once more
  6. Enter the command: find / -name [filename] (Please note: you must know which file you're searching for. In the process above, swap the file name for [filename])
  7. Hit Enter (Bare in mind, it might take Terminal some time to finish the task. You’ll also see “operation not permitted,” on a lot of what Finder returns, just ignore that.)
  8. Locate your desired file and select the file path
  9. Right-click the text to copy it.

Copy the file path using Go to Folder

A quick way of surfacing a file path is with the Go to Folder in Finder command.

 

Here’s how to copy the file path using the Go to Folder:

  1. Launch Finder
  2. In Finder’s menu, click Go > Go to Folder
  3. Drag and drop your file onto the path field.

Create a “copy path” service in Automator

Perhaps the most efficient way to copy a file path is with Automator. By adding the “Copy Path” action to the right-click menu, you can simply copy the file path to your clipboard.

 

Here’s how you can create a “Copy Path” service in Automator:

 

1. Go to Applications > Automator

 

2. To create a new service, navigate to File > New Document > Quick Action from the dialog box

 

3. Click Choose

Automator User Interface

4. Under the Actions tab, look for “Copy to Clipboard,” and drag it to the right side of the panel

 

5. Beside Workflow receives current, change it to files or folders, and beside in, change it to Finder

Automator User Interface

6. Save the service name under something like “Copy File Path.” Now, exit Automator and open Finder. Right-click on any file—you’ll hopefully see the name of the new action.

 

7. After you select the file, it’ll be copied to the clipboard. You’re then free to paste it anywhere you wish.

User Interface

At the end of the day

It sure can be annoying when you can’t locate a file, but after going over these steps, you should be able to locate and copy any file in several ways.  

 

We also looked at the benefits of using MacKeeper’s Duplicates Finder, which makes the process simple, safe, and efficient. As clutter can cause your Mac to run slow and cause confusion at the roots, eliminating unwanted copies with a reliable third-party tool is a secure way to go.

 

Maybe you don’t know how to show hidden files on Mac? If that's the case, we’ve made it easy for you.

Use your Mac to the fullest! Sign up and get:
Effective tips on how to fix Mac issues
Reliable advice on how to stay safe online
Mac-world news and updates

Thank you!

You’ll love exploring your Mac with us.

Oops, something went wrong.

Try again or reload a page.

Here’s another sign you need to upgrade your macOS ASAP:

30% off your MacKeeper subscription

Сopy the code now and use it in the MacKeeper checkout after the upgrade.

Copy Code

Please be aware that this code cannot be combined with any other discounts, offers, or promotions.

Contents

Unlocked

Mac cluttered again? Organize files in a click with Duplicates Finder.

Start now
PC

MacKeeper - your all-in-one solution for more space and maximum security.

Try Now

Read more

How to Format a SD Card on Mac?
How to Format a SD Card on Mac?
Mac file sharing is not working?
Mac file sharing is not working?
arrow

Run Application

step_1

Click Continue

step_2

Click Install

step_1

Your macOS version is lower than OS 10.11. We’d like to offer you MacKeeper 4 to solve the cleaning, privacy, and security issues of your macOS.