Mac系统下,在Finder中显示隐藏文件
第一种:通过终端命令方式
在终端里输入下面命令即可让它们显示出来。
defaults write ~/Library/Preferences/com.apple.finder AppleShowAllFiles -bool true
如果想恢复隐藏,可以用这个命令。
defaults write ~/Library/Preferences/com.apple.finder AppleShowAllFiles -bool false
第二种:使用Xcode自带的Property List Editer
在Finder中找到/Users/yourname/Library/Preferences
找到该目录下面 com.apple.finder.plist 文件,使用Property List Editer打开(一般默认)
如下图所示,改变AppleShowAllFiles的check选项来控制.
![](https://i-blog.csdnimg.cn/blog_migrate/77b6390141e53b3642cfd4442c93590d.png)
第三种:使用其他工具,比如OnyX
打开OnyX,在列表菜单中点选Parameters
![](https://i-blog.csdnimg.cn/blog_migrate/94e44ad7111f566d2ccf353a7fc7d12a.gif)
注意:1、需要重启 Finder 才能看到效果。
2、不要乱动不懂的隐藏文件,可能会损坏你的系统。
![](https://i-blog.csdnimg.cn/blog_migrate/eabf08df8de96f4bea3ed241e58b3b75.png)