显示
defaults write com.apple.finder AppleShowAllFiles -boolean true ; killall Finder
隐藏
defaults write com.apple.finder AppleShowAllFiles -boolean false ; killall Finder
defaults write com.apple.finder AppleShowAllFiles -boolean true ; killall Finder
defaults write com.apple.finder AppleShowAllFiles -boolean false ; killall Finder