Show Hidden Files in Mac Finder

By  on  

Setting up a new machine is a great time for me to write blog posts about configuration settings that I'd forgotten to document.  Much of the time I refer back to this post to figure out how I did things like Add Dock Separators and add support for Xbox controllers.

One important configuration detail developers like myself need is the ability to view hidden and dot files from within Finder:

Finder Hidden Files

To show hidden files within Finder, execute the following from the command line terminal:

# Always show hidden files
defaults write com.apple.finder AppleShowAllFiles YES

# Reset Finder for the settings to take effect
killall Dock

You'd think your machine was empty until you see the mountain of hidden files that macOS hides by default!  I understand why Apple hides these files by default:  they want the machine to seem simple for most users. Us developers, however, need to know where all the skeletons are!

Recent Features

  • By
    39 Shirts – Leaving Mozilla

    In 2001 I had just graduated from a small town high school and headed off to a small town college. I found myself in the quaint computer lab where the substandard computers featured two browsers: Internet Explorer and Mozilla. It was this lab where I fell...

  • By
    6 Things You Didn’t Know About Firefox OS

    Firefox OS is all over the tech news and for good reason:  Mozilla's finally given web developers the platform that they need to create apps the way they've been creating them for years -- with CSS, HTML, and JavaScript.  Firefox OS has been rapidly improving...

Incredible Demos

Discussion

  1. Cmd + Shift + .

    I found it much quicker. Have a great day!

  2. Easy to think about it. Cmd + Shift + dot (like a dotfiles — hidden files in mac OS)

  3. I’ve setup two aliases for this so it’s easy to toggle between the modes.

    alias showHiddenFiles='defaults write com.apple.finder AppleShowAllFiles YES; killall Finder'
    alias hideHiddenFiles='defaults write com.apple.finder AppleShowAllFiles NO; killall Finder'
  4. Ivan Čurić

    Or you can use ⌘+ ⇧ + .

  5. Tobsen

    There is an easier way to do this. Just press ⌘⇧. in the Finder or open/save dialog.

  6. Dave

    When did this come out??? ⌘+ ⇧ + .

Wrap your code in <pre class="{language}"></pre> tags, link to a GitHub gist, JSFiddle fiddle, or CodePen pen to embed!