---
title: "Mac系统中在Finder中显示(隐藏)隐藏文件"
author: "yarin"
date: "2010-08-16T09:46:56Z"
tags: []
categories: ["操作系统"]
slug: "mac-finder"
draft: false
lastmod: "2010-08-16T09:46:56Z"
id: 738124
url: "https://yarin.iteye.com/blog/738124"
---

# 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选项来控制.

![](http://dl.iteye.com/upload/attachment/293657/00b26b3d-de5c-3a06-a44d-30071020e136.png)

## 第三种：使用其他工具，比如OnyX

打开OnyX，在列表菜单中点选Parameters 

![](http://dl.iteye.com/upload/attachment/293665/47e5f619-7fc8-3dcf-8717-66d3646483ba.gif)  
 注意：1、需要重启 Finder 才能看到效果。

         2、不要乱动不懂的隐藏文件，可能会损坏你的系统。

![](http://dl.iteye.com/upload/attachment/293661/9829b1c6-6756-3721-a7a8-539a2fdddb62.png)