By default the Finder only displays visible files and public directories.
This excludes any files that begin with a period (such as
.htpasswd) as well as any non-public directories, such as
/private/etc/ (containing useful files like
/usr/local/Cellar, where Homebrew-managed packages are installed.
One can easily access all of these files and directories via the command-line. But that’s no help if you’re trying to do so via the Finder or software that’s integrating with the Finder.
To make these files and directories visible, run this at the command-line:
defaults write com.apple.Finder AppleShowAllFiles YES
Then relaunch the Finder:
Command-Option Escapeto open the Force Quit dialog box.
- Select Finder.
- Click Relaunch.
defaults write com.apple.Finder AppleShowAllFiles NO
Don’t forget to relaunch the Finder after.