Show Hidden Files on a Mac

I’m installing Drupal on my site and didn’t get very far before I ran into an issue. The tutorial on the Drupal website says I need to make sure my hidden files are visible before uploading to my server because apparently there’s one hidden file that’s very important in order to make sure everything works properly. I don’t see an option in the Finder menu. How do I do it? I’m on a Mac, by the way.

OS X hides files that begin with a “.”, for example “.htaccess”. These are hidden by default because it’s very important you don’t mess with them! If you promise not to edit these files, I’ll tell you how to make them visible.
Promise? Okay.
The quickest way to accomplish this is to type “Terminal” in Spotlight. In Terminal, type (or copy) this line:
defaults write com.apple.finder AppleShowAllFiles TRUE
Hit “Enter”, then type
killall Finder
Open a new Finder window (don’t use one that was previously opened) and you’ll see your hidden files. Once you’re done with the files, it’s best to go back into Terminal and hide the files. Type:
defaults write com.apple.finder AppleShowAllFiles FALSE
Hit “Enter”, then type
killall Finder
The difference is that you’re using “TRUE” to show the files, and “FALSE” to hide the files.







