If you need to copy the full set of nested folders or Unix file paths, there are two Finder tricks.

Sometimes you need to copy the exact location of a file in macOS through all nested folders (in the graphical user interface of the Finder) or directories (in the identical Unix hierarchy accessible via Terminal). This can be useful for deleting a file that requires intervention through the Terminal or for troubleshooting. I recently had to dig up some errant Dropbox entries for their technical support to figure out why syncing would never complete.

There are two tricks to find this full path from the Finder:

  • Control- or right-click a file or folder. After the contextual menu appears (and only after), add the Option key and then select Copy “file name or folder name” as Pathname.
  • Open Applications > Utilities > Terminal. Drag the file into the Terminal. The path to the file or folder appears as a selection. In this method, the path name is escaped for Unix compatibility.

(Escaping means that any character that can’t be typed directly as part of a path in a Unix command has a backslash in front of it to “escape” it. This translates as, “Treat the following character as exactly what it is instead of something different that Unix would interpret as not part of the path.”)

Read more at MacWorld.com

Leave a Reply

Discover more from

Subscribe now to keep reading and get access to the full archive.

Continue reading