2016年9月

在终端执行命令

defaults write com.apple.finder AppleShowAllFiles -bool true

设置显示隐藏文件。
然后重启Finder:鼠标单击窗口左上角的苹果标志-->强制退出-->Finder-->重新打开目录

如果要设置文件隐藏使用命令

defaults write com.apple.finder AppleShowAllFiles -bool false