1

This question already has an answer here:

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?

marked as duplicate by klanomath, Community Aug 26 '16 at 17:29

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

5

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

defaults write com.apple.finder AppleShowAllFiles YES

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

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

  • Unfortunately this does not change the behaviour of finder in an Open File window, for example. But see abh's shortcut below – DrGC Jun 4 '17 at 15:38
6

A handy related shortcut to reveal files that begin with a . (dot) in Finder dialogs that popup from a File->Open action 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'
  • 1
    The keyboard shortcut is a great tip! I wish I could do that directly in Finder (not just in an "Open" window). – Samuel Bradshaw Aug 26 '16 at 23:21
  • This is better. – xi.lin Nov 30 '18 at 8:29
  • I have confirmed that this works in any Finder window in Mojave :-) – abh Nov 30 '18 at 14:20

Not the answer you're looking for? Browse other questions tagged .