Showing hidden files and unix folders in mac finder

By default your mac finder will not show you hidden files like “~/.bashrc” and/or “~/.m2″ to show these files you have to:

1. Open terminal and type the following command:

defaults write com.apple.Finder AppleShowAllFiles YES

2. Relaunch finder - by clicking down on finder in the dock while keeping the “Alt/option” key pressed and then selecting relaunch.

Next this time you will see all your hidden files and folders and also core unix folders like /usr and /var.