To show hidden files in MacOS, please follow the following steps:
- Open Terminal
- Enter the following command and press enter key defaults write com.apple.finder AppleShowAllFiles YES
- Press and hold Alt / Option key and right click on the Finder icon
- click Relaunch
Your finder will now display all the hidden files and folders.
To disable showing hidden files, please follow the following steps:
- Open Terminal
- Enter the following command and press enter key: defaults write com.apple.finder AppleShowAllFiles NO
- Press and hold Alt / Option key and right click on the Finder icon
- click Relaunch