Show hidden mac finder files using terminal
So I accidentally dropped a .htaccess files on my desktop and it instantly dissappeared, very annoying as any (dot)files become hidden on the Finder. After a Google search I came across this problem solver.
If you open up terminal (Applications > Utilities) and type the following lines, one at a time:
defaults write com.apple.finder AppleShowAllFiles TRUE
killall Finder
Once you’ve deleted the files you’re looking for, hide them again.
defaults write com.apple.finder AppleShowAllFiles FALSE
killall Finder

