Mac OS | Configure Finder Hidden Files
How to show or hide hidden files in macOS Finder and restart Finder
Show Hidden Files in Finder
Run the following command in the terminal.
$ defaults write com.apple.Finder AppleShowAllFiles YES
Hide Hidden Files in Finder
Run the following command in the terminal.
$ defaults write com.apple.Finder AppleShowAllFiles NO
Restart Finder
$ killall -KILL Finder
NOTE: After changing the setting, you must restart Finder.