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 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
    fetch API

    One of the worst kept secrets about AJAX on the web is that the underlying API for it, XMLHttpRequest, wasn't really made for what we've been using it for.  We've done well to create elegant APIs around XHR but we know we can do better.  Our effort to...

  • By
    9 Mind-Blowing Canvas Demos

    The <canvas> element has been a revelation for the visual experts among our ranks.  Canvas provides the means for incredible and efficient animations with the added bonus of no Flash; these developers can flash their awesome JavaScript skills instead.  Here are nine unbelievable canvas demos that...

Incredible Demos

  • By
    Adding Events to Adding Events in MooTools

    Note: This post has been updated. One of my huge web peeves is when an element has click events attached to it but the element doesn't sport the "pointer" cursor. I mean how the hell is the user supposed to know they can/should click on...

  • By
    Send Email Notifications for Broken Images Using jQuery AJAX

    It's usually best to repair broken image paths as soon as possible because they can damage a website's credibility. And even worse is having a user tell you about it. Using jQuery and PHP, you can have your page automatically notify you of broken...


  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 AppleShowAllFiles YES; killall Finder'
    alias hideHiddenFiles='defaults write 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!