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
    Create Namespaced Classes with MooTools

    MooTools has always gotten a bit of grief for not inherently using and standardizing namespaced-based JavaScript classes like the Dojo Toolkit does.  Many developers create their classes as globals which is generally frowned up.  I mostly disagree with that stance, but each to their own.  In any event...

  • By
    Chris Coyier’s Favorite CodePen Demos

    David asked me if I'd be up for a guest post picking out some of my favorite Pens from CodePen. A daunting task! There are so many! I managed to pick a few though that have blown me away over the past few months. If you...

Incredible Demos

  • By
    Styling CSS Print Page Breaks

    It's important to construct your websites in a fashion that lends well to print. I use a page-break CSS class on my websites to tell the browser to insert a page break at strategic points on the page. During the development of my...

  • By
    Multiple Background CSS Animations

    CSS background animation has been a hot topic for a long time, mostly because they look pretty sweet and don't require additional elements.  I was recently asked if it was possible to have multiple background animations on a given element and the answer is yes...with...

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!