defaults write com.apple.finder AppleShowAllFiles -bool true; killall Finder //显示隐藏文件
defaults write com.apple.finder AppleShowAllFiles -bool false; killall Finder //隐藏隐藏文件
defaults write com.apple.finder AppleShowAllFiles -bool true; killall Finder //显示隐藏文件
defaults write com.apple.finder AppleShowAllFiles -bool false; killall Finder //隐藏隐藏文件
转载于:https://www.cnblogs.com/myh1036166261/p/6228177.html