defaults write com. apple. finder AppleShowAllFiles YE code example Example: how to view hidden files in mac terminal defaults write com.apple.finder AppleShowAllFiles YES