Toggle hidden files in the Finder on a Mac

To show hidden files in the Finder on a Mac, enter the following in a Terminal:

defaults write com.apple.Finder AppleShowAllFiles TRUE
killall Finder

To hide hidden files in the Finder on a Mac, enter the following in a Terminal:

defaults write com.apple.Finder AppleShowAllFiles FALSE
killall Finder
Advertisements