1、显示隐藏文件
defaults write com.apple.finder AppleShowAllFiles -boolean true ; killall Finder
2、重新隐藏
defaults write com.apple.finder AppleShowAllFiles -boolean false ; killall Finder