In Terminal type:

defaults write com.apple.Finder AppleShowAllFiles YES

Then you’ll need to restart Finder by alt + right clicking the Finder logo and selecting relaunch. Obviously change to NO to disable again.