Showing And Hiding The Hidden Files In Mac

It’s easy! Open Terminal and run the following commands

Show hidden files

defaults write com.apple.finder AppleShowAllFiles TRUE  
killall Finder  

Hide hidden files

defaults write com.apple.finder AppleShowAllFiles FALSE  
killall Finder