打開“終端”,輸入以下代碼:
defaults write ~/Library/Preferences/com.apple.finder
AppleShowAllFiles -bool true
然后重啟 Finder 即可,重起Finder有多種方法,最簡單的方法就是:
同時按住Control +
Option鍵,然后點擊Dock左邊的Finder圖標,這個時候菜單最下面就會出現重新打開Finder的鏈接。另外還可以同時按住
Option
+ Command + ESC
三鍵打開強制退出應用程序對話框,在里面關閉Finder之后,Finder會在關閉之后自動重新打開。
恢復隱藏的代碼:
defaults write ~/Library/Preferences/com.apple.finder
AppleShowAllFiles -bool false