打开:defaults write com.apple.finder AppleShowAllFiles -bool true
关闭:defaults write com.apple.finder AppleShowAllFiles -bool false
打开:defaults write com.apple.finder AppleShowAllFiles -bool true
关闭:defaults write com.apple.finder AppleShowAllFiles -bool false