macos hidden files code example
Example 1: hide hidden files mac
defaults write com.apple.Finder AppleShowAllFiles false
#Change 'false' by 'true' to show hidden files
killall Finder
Example 2: show hidden files mac
defaults write com.apple.Finder AppleShowAllFiles true
Example 3: show hidden files osx
defaults write com.apple.Finder AppleShowAllFiles true
[Enter]
killall Findermixed
Example 4: show hidden files mac
cmd + shift + .