defaults write com.apple.finder AppleShowAllFiles Yes && killall Finder
恢复不显示隐藏文件命令如下:
defaults write com.apple.finder AppleShowAllFiles No && killall Finder
Mac os显示隐藏文件
原文:https://www.cnblogs.com/sobigdata/p/10053058.html