How to view hidden files when viewing a mac through target disk mode?

I am hoping to view some of a /usr/local folder from a mac, using target disk mode.

However, it is hidden and I cannot see it in finder to copy.

How can I view and then copy a file (for example, /usr/local/test.txt) from a mac that is in target disk mode to another mac?


Basically, the same way you would view those hidden files on your machine. You just have to go to the correct spot. Volumes mounted via Target Disk Mode can be found in /Volumes of the filesystem.

Three common options:

  1. From Terminal.app (found in your Applications folder, under Utilities, you can navigate to the target mode machine starting in "/Volumes". So in Terminal.app do a cd /Volumes to see the target disk and navigate to where you need to go.

  2. From the menu bar of Finder.app, select "Go", then "Go to Folder..." and type in the path you are trying to get to. e.g. "/Volumes/<target mode HDD>/usr/local/"

  3. Turn on the ability to view hidden files in the Finder. In Terminal.app enter defaults write com.apple.finder AppleShowAllFiles true && killall Finder and then point & click your way to what you need.