macos show hidden files in finder code example
Example 1: how to see hidden files in mac
Cmd + Shift + . (dot)
Example 2: hide hidden files mac
defaults write com.apple.Finder AppleShowAllFiles false
#Change 'false' by 'true' to show hidden files
killall Finder
Example 3: how to view hidden files in mac terminal
defaults write com.apple.finder AppleShowAllFiles YES
Example 4: display hidden files mac
defaults write com.apple.finder AppleShowAllFiles TRUE
killall Finder