show hidden files and folders in finder 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: mac show hidden files
>> To show hidden files, hold down: Cmd + Shift + . (dot)
>> Hold down Cmd + Shift + . (dot) a second time to hide the files again.