In Finder, press Command + Shift + .
In Finder, open a folder and press Command + Shift + .
In Terminal, run: defaults write com.apple.finder AppleShowAllFiles -bool true
In Terminal, run: killall Finder
To hide them again, run: defaults write com.apple.finder AppleShowAllFiles -bool false
To apply the change, run: killall Finder
