mac hidden files shortcut 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: how to view hidden files in mac terminal
defaults write com.apple.finder AppleShowAllFiles YES
Example 3: mac hidden files shortcut
Toggle hidden files on macOS: Command + Shift + .
Example 4: macos show hidden files in finder keyboard shortcut
To show/hide press:
Command + Shift + .