显示Mac隐藏文件的命令:
defaults write com.apple.finder AppleShowAllFiles -bool true 或者
defaults write com.apple.finder AppleShowAllFiles YES
隐藏Mac隐藏文件的命令:
defaults write com.apple.finder AppleShowAllFiles -bool false 或者
defaults write com.apple.finder AppleShowAllFiles NO
输完单击Enter键,退出终端,重新启动Finder就可以了