显示Mac隐藏文件的命令:defaults write com.apple.finder AppleShowAllFiles -bool trueshell
隐藏Mac隐藏文件的命令:defaults write com.apple.finder AppleShowAllFiles -bool falseapp
或者spa显示Mac隐藏文件的命令:defaults write com.apple.finder AppleShowAllFiles YEScode
隐藏Mac隐藏文件的命令:defaults write com.apple.finder AppleShowAllFiles NO
输完单击Enter键,退出终端,从新启动Finder就能够了
重启Finder:鼠标单击窗口左上角的苹果标志-->强制退出-->Finder-->从新启动it