(1)
defaults write com.apple.finder AppleShowAllFiles -bool true 此命令显示隐藏文件
(2) defaults write com.apple.finder AppleShowAllFiles -bool false 此命令关闭显示隐藏文件
(3)如果实在没法展现隐藏/展现文件
A.展现隐藏文件
$ defaults write com.apple.finder AppleShowAllFiles -bool true
$ killall Finder
B.隐藏文件
$ defaults write com.apple.finder AppleShowAllFiles -bool false
$ killall Finder