显示:

1
defaults write com.apple.finder AppleShowAllFiles -bool true

隐藏:

1
defaults write com.apple.finder AppleShowAllFiles -bool false