(MacOS) How to view hidden files

1. Enter the code in Terminal

 

1).Show hidden files

defaults write com.apple.finder AppleShowAllFiles -bool true

or

defaults write com.apple.finder AppleShowAllFiles YES

2), do not display hidden files

Terminal input code:

defaults write com.apple.finder AppleShowAllFiles -bool false

or

defaults write com.apple.finder AppleShowAllFiles NO

2. Press Enter to force exit Terminal and finder.

(Be sure to remember to force quit, otherwise it will not take effect)

The gray ones are hidden files

Reference article for this article: How to display hidden files and not display hidden files in MAC (super simple

Guess you like

Origin blog.csdn.net/weixin_67225910/article/details/132141214