Show hidden files in the OS X Finder

Technology

Every once in a while I need to make an update to an .htaccess file on a server share or some other dot-file that is normally hidden by the Finder. Instead of editing the file in the terminal with the vi editor—a perfectly appropriate solution, of course—it’s a pretty simple tweak to make the Finder show all of those hidden files.

Just open a Terminal window and run the following:

# defaults write com.apple.finder AppleShowAllFiles -bool true
# KillAll Finder

One thing you might notice after enabling the hidden file option, aside from all those insidious .DS_Store files, is that all of the file icons will take on a hazy, 50% alpha look. I’ve gotten used to it, but it’s a little annoying. To switch things back, just set the AppleShowAllFiles parameter back to false:

# defaults write com.apple.finder AppleShowAllFiles -bool false
# KillAll Finder

Like I said… perfectly appropriate to edit stuff with vi from the terminal window.

What will the next generation of Make: look like? We’re inviting you to shape the future by investing in Make:. By becoming an investor, you help decide what’s next. The future of Make: is in your hands. Learn More.

Tagged
Discuss this article with the rest of the community on our Discord server!

ADVERTISEMENT

Escape to an island of imagination + innovation as Maker Faire Bay Area returns for its 16th iteration!

Prices Increase in....

Days
Hours
Minutes
Seconds
FEEDBACK