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

    Many of the new APIs provided to us by browser vendors are more targeted toward the mobile user than the desktop user.  One of those simple APIs the Vibration API.  The Vibration API allows developers to direct the device, using JavaScript, to vibrate in...

  • 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...

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!