---
title: "Mac OS中显示及隐藏文件和文件夹的方法 "
author: "dimple"
date: "2015-04-10T12:13:32Z"
tags: []
categories: ["企业架构"]
slug: "mac-os"
draft: false
lastmod: "2015-04-10T12:13:32Z"
id: 2201021
url: "https://dimple.iteye.com/blog/2201021"
---

Mac有一个设计原则，就是用户不需要看到的或者用户不希望看到的，都不会显示出来。但如果你想要修改其中某些文件，也是可以的，先需要显示所有的文件，可以在终端中输入命令行来实现。

显示系统隐藏的文件

```
    defaults write com.apple.finder AppleShowAllFiles -bool true  
    KillAll Finder  
    或者  
    defaults write com.apple.finder AppleShowAllFiles YES  
    KillAll Finder  
```