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。