---
title: "Mac 显示/隐藏 文件的终端命令"
author: "xiaoboss"
date: "2012-08-15T21:20:41Z"
tags: []
categories: ["操作系统"]
slug: "mac"
draft: false
lastmod: "2012-08-15T21:20:41Z"
id: 1633310
url: "https://xiaoboss.iteye.com/blog/1633310"
---

苹果Mac OS X操作系统下，隐藏文件是否显示有很多种设置方法，最简单的要算在Mac终端输入命令。显示/隐藏Mac隐藏文件命令如下(注意其中的空格)：[]()

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

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