How to show and edit .htaccess file on MAC?

MacTerminal-1-start

Today I tried to enable the WordPress multiple site mode, it requires me to edit the .htaccess file, however, .htaccess is a hidden file, so I must show hidden files first, right? Let’s go!

 

Show Hidden Files

Appli­cations → Utilities → Terminal, Open up Terminal window,  input the following commands one by one.

defaults write com.apple.finder AppleShowAllFiles TRUE
killall Finder

 

Hidden the Files Again

After I edited the .htaccess file, then just want to hide the files again, because looks so messy. So, just input the following commands one by one.

defaults write com.apple.finder AppleShowAllFiles FALSE
killall Finder

That’s it.

Leave a Reply