Dans un terminal:

defaults write com.apple.finder AppleShowAllFiles TRUE
killall Finder

Pour cacher les fichiers:

defaults write com.apple.finder AppleShowAllFiles FALSE
killall Finder