How to show hidden files in finder? [duplicate]

You have to let Finder know that you want a Boolean value (true or false):

defaults write com.apple.finder AppleShowAllFiles -bool TRUE

Shift-Command-Period shows and hides the files in open/save dialogs, it might work in the main Finder.