转载 2011年10月15日 09:27:31

Did you know that your hard drive is full of hidden files. All of them are hidden to keep your computer running smoothly. But every so often you may want to view those files to see if your computer is acting out of the ordinary or you have mistakenly named something starting with a dot (.) and want to find the file again. There are three ways you can do this. Through an application, through a preference pane, or good old command line. Each have there pros and cons.

Application Method

The application method is probably the simplest. With a simple application such as Houdini, you can at the click of a button hide or show files or folders. As well as this it also enables you to quickly hide folders on your hard drive so they are hidden from view. This works very well if you want to hide your “important files” from people, and don’t want to use the password protect folder method.

Preference Pane Method

Another simple method of hiding files is using a special preference pane called Secrets. I posted about earlier. It enables you to show and hide folders using one of the many options, within the program. It also has a whole lot more, to enable you to access the deepest parts of your operating system.

Terminal Method

Probably the hardest to do but uses the least amount of work and has the most potential to go wrong, that is the Terminal Method. If you open up terminal (Applications > Utilities) and type the following:

defaults write AppleShowAllFiles TRUE
killall Finder

This will show you all of the hidden files and folders on your operating system. If you want to reverse the command replace TRUE with FALSE.

Personally my favourite method is to use the secrets pane, I find it is the quickest method of them all. To conclude if you want to use these commands I suggest you don’t change anything. Like my parents said, look with your eyes and not with your hands. I seriously don’t recommend you change anything at all, other wise there would be dire consequences for you system.

If you want to learn more about these sort of tricks I recommend, Mac OS X Snow Leopard: The Missing Manual orMac OS X Unix Toolbox. Both develop this skills further and have lots of other types of tricks like this.


  • ItJavawfc
  • ItJavawfc
  • 2017年01月06日 14:41
  • 1487


前言:之前一直用的都是 windows 系统的电脑,刚接触 Mac ,很多功能都不熟悉,写下博客记录一下,以防以后忘记,也给后来者提供方便。命令行方式:显示隐藏文件:defaults write co...
  • qq_32452623
  • qq_32452623
  • 2017年06月26日 00:06
  • 5742


打开终端,输入: defaults write AppleShowAllFiles -bool true搜索       此命令显示隐藏文件 defaults w...
  • cafei111
  • cafei111
  • 2016年11月30日 17:43
  • 1601

MAC 通过命令行快速的显示隐藏文件

MAC中显示隐藏文件有很多种方法,最简单的是通过在Mac终端输入命令。 显示隐藏文件(注意空格和大小写): defaults write AppleShowAll...
  • cyuyanenen
  • cyuyanenen
  • 2016年07月05日 13:05
  • 10636

如何在Mac OS X中开启或关闭显示隐藏文件命令

打开终端,输入: defaults write AppleShowAllFiles -bool true 此命令显示隐藏文件 defaults write co...
  • Bruce__Liu
  • Bruce__Liu
  • 2015年10月29日 14:30
  • 2270

macOS Sierra 10.12版本 显示隐藏文件

1、显示隐藏文件   打开Terminal 输入:defaults write AppleShowAllFiles -bool true   再输入: k...
  • z2340868
  • z2340868
  • 2016年11月26日 15:18
  • 1740


缺省情况下,在 Mac 下是不显示隐藏文件的,Finder 也未提供设置是否显示隐藏文件的选项,不像 Windows 下,有一个“文件夹选项“设置界面里可以控制,但这并不表示 Mac 下无法显...
  • xiaoyuanzhiying
  • xiaoyuanzhiying
  • 2015年06月30日 13:01
  • 39302

Mac 终于有显示隐藏文件的快捷键了

转载至: 在 macOS Sierra ...
  • 2017年08月01日 14:31
  • 843

Mac 基础教程:如何让 Finder 显示隐藏文件和文件夹

原文链接: 有一些人(比如笔者)总是喜欢捣鼓 Mac 上面的任何文件,尤其是那些被隐藏起来的。所以,我总是喜欢将系统默认的隐藏文件显示出来。熟悉 Wi...
  • jijiji000111
  • jijiji000111
  • 2016年10月19日 09:39
  • 2067


Mac终端显示/隐藏文件命令 在开发过程中经常会修改隐藏文件,比如上面的.bash_profile、.gitignore等等,我们可以 用命令ls -a  查看所有文件(包含隐藏文件), 命...
  • dangyt123
  • dangyt123
  • 2016年11月19日 21:06
  • 429