打开命令行输入即可,不过要重启Finder才能看到效果
defaults write com.apple.finder AppleShowAllFiles -bool true
defaults write com.apple.finder AppleShowAllFiles -bool false