6

I set hidden files to be shown with the following commands:

defaults write com.apple.finder showHiddenFiles TRUE
killall Finder

This worked as expected. Then I tried to hide them again with the following commands:

defaults write com.apple.finder showHiddenFiles FALSE
killall Finder

This has worked in the past, but it doesn't seem to be working for me today. All hidden files are still visible in Finder windows. I tried a reboot and a disk permissions repair to no avail. I'm not sure what else to try. Anyone got any bright ideas?

1
  • 1
    'true' & 'false' are predefined. TRUE, FALSE, XYZ all evaluate to an expression that is 'true'. So TRUE is true, and false is false, but FALSE is true.
    – ppostma1
    Nov 30, 2015 at 18:31

1 Answer 1

8

Try:

defaults write com.apple.Finder AppleShowAllFiles false

or with a lowercase f in finder, depending on the version of Mac OS X. And then:

killall Finder
2
  • haha no way! That worked, thanks. Can't believe it was that simple! I need to wait 5 minutes to accept. Dec 1, 2011 at 20:44
  • For what it's worth. I just changed ShowHiddenFiles to AppleShowAllFiles and that did it. Dec 1, 2011 at 20:48

You must log in to answer this question.

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