finder display all files and folders code example
Example 1: how to see hidden files in mac
Cmd + Shift + . (dot)
Example 2: show hidden files osx
defaults write com.apple.Finder AppleShowAllFiles true
[Enter]
killall Findermixed
Cmd + Shift + . (dot)
defaults write com.apple.Finder AppleShowAllFiles true
[Enter]
killall Findermixed