1

In terminal I ran:

defaults write com.apple.finder AppleShowAllFiles TRUE

and

killall Finder

If I CMD + SHIFT + G /usr/local/.git I can see the folder.

However, if I CMD + SHIFT + G and go to /usr/local I cannot see the folder.

Ruskes
  • 48,129
  • 2
  • you mean /usr/local/git, without using the (.) so not the /usr/local/.git – Ruskes Feb 27 '15 at 18:13
  • @Buscar웃 I'm using a (.). The OP is correct as is. Now if that's the correct way to do it I dunno :) – P.Brian.Mackey Feb 27 '15 at 19:12
  • normally system wont let you use a (.) in front of a folder or file name. You can’t use a name that begins with a dot “.”, because these names are reserved for the system. Please choose another name. – Ruskes Feb 27 '15 at 19:29
  • This is not a folder I created. It is a convention used by Git. The particular folder is part of the homebrew project. – P.Brian.Mackey Feb 27 '15 at 19:53
  • @bmike FWIW, this question points out an error on that SE page and some blogs on the internet. defaults write com.apple.finder AppleShowAllFiles TRUE does not work. The bool option is necessary. – P.Brian.Mackey Feb 28 '15 at 13:15
  • Indeed. That is why it wasn't merged or deleted, just linked. Your comment on the wrong answer is awesome. I'll link here from there as well. – bmike Feb 28 '15 at 13:58

2 Answers2

3

You have to let Finder know that you want a Boolean value (true or false):

defaults write com.apple.finder AppleShowAllFiles -bool TRUE
0942v8653
  • 7,412
2

Shift-Command-Period shows and hides the files in open/save dialogs, it might work in the main Finder.

mlts22
  • 31