To display hidden files on a Mac you simply open your terminal and enter following:

defaults write com.apple.finder AppleShowAllFiles TRUE

After this is done you have to restart the Finder:

killall Finder

When you want to hide them again execute following:

defaults write com.apple.finder AppleShowAllFiles FALSE

Don’t forget to restart the Finder again.