mac显示和隐藏文件

 显示Mac隐藏文件的命令:defaults write com.apple.finder AppleShowAllFiles -bool true

 隐藏Mac隐藏文件的命令:defaults write com.apple.finder AppleShowAllFiles -bool false


或者

 显示Mac隐藏文件的命令:defaults write com.apple.finder AppleShowAllFiles YES

 隐藏Mac隐藏文件的命令:defaults write com.apple.finder AppleShowAllFiles NO

 输完单击Enter键,退出终端,重新启动Finder就可以了

 重启Finder:鼠标单击窗口左上角的苹果标志-->强制退出-->Finder-->重新启动

原文地址:https://www.cnblogs.com/yoran-yang/p/4560058.html