39

In the finder, files that begin with a . (dot) are not being shown for me.

How can I configure the finder to reveal all files, including ones that begin with a dot?

WilliamKF
  • 2,237

2 Answers2

90

A handy keyboard shortcut to reveal files that begin with a . (dot) in Finder is:

Shift + Command + .

This toggles . (dot) files to show/ hide without needing to restart Finder.

You can also define an alias to quickly toggle hidden files within Finder:

alias AllFilesTRUE='defaults write com.apple.finder AppleShowAllFiles TRUE; killall Finder'
alias AllFilesFALSE='defaults write com.apple.finder AppleShowAllFiles FALSE; killall Finder'
abh
  • 1,169
33

Open your Terminal (/Applications/Utilities) then enter,

defaults write com.apple.finder AppleShowAllFiles YES

Then restart Finder by holding down Option and Control, or right-clicking on the Finder's icon in your Dock and choosing "Relaunch".

To revert this behavior, simply change the YES to NO in that defaults command.

Piper
  • 105
da4
  • 5,675
  • 1
    Unfortunately this does not change the behaviour of finder in an Open File window, for example. But see abh's shortcut below – DrGC Jun 04 '17 at 15:38