一時的

command + shift + .

永続的

$ defaults write com.apple.finder AppleShowAllFiles TRUE