Finder显示隐藏文件

Finder显示隐藏文件的命令:
defaults write com.apple.finder AppleShowAllFiles -bool true

defaults write com.apple.finder AppleShowAllFiles YES

相反,隐藏的命令:
defaults write com.apple.finder AppleShowAllFiles -bool false

defaults write com.apple.finder AppleShowAllFiles NO

命令需要强制退出并重启Finder后生效,呼出强制退出command+alt+esc。