---
title: "mac系统显示和隐藏文件"
author: "haking"
date: "2012-07-02T11:52:12Z"
tags: []
categories: ["操作系统"]
slug: "mac"
draft: false
lastmod: "2012-07-02T11:52:12Z"
id: 1574080
url: "https://haking.iteye.com/blog/1574080"
---

# mac系统显示和隐藏文件

苹果Mac OS X操作系统下，显示/隐藏Mac隐藏文件命令如下(注意其中的空格并且区分大小写)：

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

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

或者

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

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

 

输完单击Enter键，退出终端，重新启动Finder就可以了

重启Finder：鼠标单击窗口左上角的苹果标志--&gt;强制退出--&gt;Finder--&gt;重新启动