顯示所有隱藏檔案:

第一個命令:defaults write com.apple.finder AppleShowAllFiles TRUE
回車後,迫使系統將使用者資源庫裡Preferences資料夾裡com.apple.finder.plist檔案中AppleShowAllFiles引數值改成TRUE
第二個命令:killall Finder 中斷Finder程序,重新整理檢視

 defaults write com.apple.finder AppleShowAllFiles  TRUE
killall Finder

不顯示隱藏檔案:

 defaults write com.apple.finder AppleShowAllFiles  FALSE
killall Finder