顯示Mac隱藏文件的命令:
defaults write com.apple.finder AppleShowAllFiles -bool true || defaults write com.apple.finder AppleShowAllFiles YES
隱藏Mac隱藏文件的命令:
defaults write com.apple.finder AppleShowAllFiles -bool false || defaults write com.apple.finder AppleShowAllFiles NO
輸完單擊Enter鍵,退出終端,重新啟動Finder就可以了
重啟Finder:鼠標單擊窗口左上角的蘋果標志-->強制退出-->Finder-->重新啟動