我们以系统文件夹Library为例 首先打开终端
打开一个文件夹 :open ~/Library
取消隐藏文件夹:chflags nohidden ~/Library
设置隐藏文件夹:chflags hidden ~/Library
隐藏所有设置隐藏属性的文件夹:defaults write com.apple.finder AppleShowAllFiles -bool false
显示所有文件夹:defaults write com.apple.finder AppleShowAllFiles -bool true