how to view hidden files in terminal code example
Example 1: view hidden files ls
$ ls -a
OR
$ ls -al
Example 2: how to view hidden files in mac terminal
defaults write com.apple.finder AppleShowAllFiles YES
Example 3: ls show hidden files
$ ls -a
$ ls -al