Show or Hide hidden files on macOS
16 July, 2020
By default, files which begin with a dot (e.g. .gitignore
) on macOS are hidden from the Finder app. You can however, quickly show or hide these files with a simple Terminal script.
# Show files
$ defaults write com.apple.finder AppleShowAllFiles YES
$ killall Finder
# Hide files
$ defaults write com.apple.finder AppleShowAllFiles NO
$ killall Finder