A file path is the address or location of a file or folder in a computer’s file system. If you are a Mac user, you may need the full path of a file or folder at times. While it’s easy to find the path of a file in the Mac terminal using drag and drop, there are more ways to copy the path of a file or folder on Mac OS X Mountain Lion and macOS Catalina and Mojave. You can paste the file path on Mac using Command +V.

The copied full path of a file looks as shown below:

/Users/UserName/Desktop/Sample.zip
Table of Content

1. Via Mac Context Menu

This is probably the easiest way to copy the path of a file or folder on macOS.

  1. Select a file or folder and perform a right-click.
  2. When the context menu appears, hold the Option key on the keyboard.
  3. Copy “File-name” as Pathname option will appear in the context menu. Just click it to copy the full file path to the clipboard.copy file pathname mac context menu

2. Via the Get Info Option

MacOS has an option called Get Info in the context menu. Using this option, you can see all information related to any file on your Macintosh computer such as file name, file type, file size, location, etc.

  1. Right-click a file or folder and click the Get Info option in the context menu.
  2. The info box will pop up.
  3. Check the Where label and you will find the path of the file. You can highlight the path of the file and copy it.mac os get info option

Use this method only if you want to find the location of a file or folder. You can copy the file path but can’t use it in the Terminal or a file upload dialog box.

Download: 300 Mac Keyboard Shortcuts Cheat Sheet PDF

3. From Go to Folder

There is yet another easy way to find and copy the path of a file on your Mac.

  1. While in Finder, click the Go option on the taskbar of your Mac.
  2. Select the Go to Folder option.go to folder option mac finder
  3. You’ll see a new pop-up window named Go to Folder.go to folder box mac os
  4. Now, drag the file or folder into the input field that says Enter a path.drop file in go to folder mac
  5. You should now see the full file path in the Go to Folder dialog box.file path in go to folder mac os
  6. Just press Command + C to copy the path to the clipboard. You can now paste the full path of the file anywhere you want.
5 Ways to Restore Deleted Contacts on Android

4. Via Mac Terminal

Mac Terminal is generally used to execute commands but you can also use it to find the path of a file on macOS. Follow these steps to find a file path using the Terminal app on Mac. This method is useful especially if you need to type the full path of a file in a command line.

  1. Navigate to Finder > Go > Utilities.macOS: Go > Utilities
  2. Launch the Terminal app.
  3. Drag the file or folder and drop it in the Terminal window.
  4. It’ll instantly show you the full path of the file. If the file is located on the desktop, it will show the desktop path. Similarly, if the file is in the Downloads folder, it will show the download folder path in the Terminal.file path in mac terminal
  5. Just highlight the file path and copy it to the clipboard. The path of the file is ready to be pasted wherever you want.

5. Create a ‘Copy Path’ Service in Automator

This method requires a little effort because you need to create an Automator service using the Copy to Clipboard feature in macOS. Once you have created the service, you’ll have a Copy path option in the context menu for all files and folders. As this option will be permanently available in Mac’s context menu, it’ll prove very handy if you need to copy the file path on your Mac frequently.

The trick described below might sound a bit geeky to you but believe me you can create the Copy path service easily using my detailed steps.

  1. Launch the Automator app on your Mac. If you don’t know where to find it, try one of the methods described below and double-click the app icon to launch it.
    • Click the File tab in the Finder screen and type “Automator” in the search bar.
    • Navigate to Go > Utilities and search for Automator.
    • Launch Finder and look for Automator under Applications.macos automator app
  2. On the next screen, select Service and select Choose to create a new service.automator service mac os
  3. In the search input box, type “Copy to Clipboard”.copy to clipboard app mac
  4. Drag Copy to Clipboard into the right pane of the window.add copy file path option via service menu on mac os
  5. Now, configure the 2 options under Service receives selected as files or folders and Finder as shown below.new service configuration mac os
  6. Finally, click File > Save and save your newly created service as “Copy path” or “Copy path to clipboard“.copy path service mac os x

Now, right-click on any file or folder in Finder. You’ll see a new item called Copy path in the context menu. Clicking this option will copy the full path of a file.

copy path to clipboard context menu mac

If you use any of the methods listed above, you won’t need to type the path of a file or folder. In place using the Terminal app to find the path of a file, it’s better to create the Copy path service so that the option is always available in the context menu itself.

Read Next: 3 Ways to Take Screenshots on macOS

Was this Article helpful?
YesNo