在Mac下显示所有文件

显示所有隐藏文件:

第一个命令:defaults write com.apple.finder AppleShowAllFiles TRUE
回车后,迫使系统将用户资源库里Preferences文件夹里com.apple.finder.plist文件中AppleShowAllFiles参数值改成TRUE
第二个命令:killall Finder 中断Finder进程,刷新视图

1 defaults write com.apple.finder AppleShowAllFiles  TRUE
2 killall Finder

不显示隐藏文件:

1 defaults write com.apple.finder AppleShowAllFiles  FALSE
2 killall Finder
原文地址:https://www.cnblogs.com/bindong/p/5823281.html