see hidden files ls code example
Example 1: how to see hidden files in mac
Cmd + Shift + . (dot)
Example 2: how to view hidden files in mac terminal
defaults write com.apple.finder AppleShowAllFiles YES
Cmd + Shift + . (dot)
defaults write com.apple.finder AppleShowAllFiles YES