open hidden file mac code example

Example 1: how to see hidden files in mac

Cmd + Shift + . (dot)

Example 2: how to view hidden files in mac terminal

defaults write com.apple.finder AppleShowAllFiles YES

Example 3: 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.

Example 4: mac hidden files shortcut

Toggle hidden files on macOS: Command + Shift + .

Example 5: show hidden files mac

defaults write com.apple.Finder AppleShowAllFiles true

Example 6: show hidden files osx

defaults write com.apple.Finder AppleShowAllFiles true
[Enter]
killall Findermixed