hidden files show in mac code example
Example 1: how to view hidden files in mac terminal
defaults write com.apple.finder AppleShowAllFiles YES
Example 2: mac hidden files shortcut
Toggle hidden files on macOS: Command + Shift + .
defaults write com.apple.finder AppleShowAllFiles YES
Toggle hidden files on macOS: Command + Shift + .