Home > Article > Operation and Maintenance > What is the method to display hidden files or not to display hidden files in macos system?
On the macos system, we can use the simplest method to display hidden files or not display hidden files. This method is the terminal command.
(Learning video sharing: Programming video)
Show hidden files (note spaces and capitalization):
defaults write com.apple.finder AppleShowAllFiles -bool true
or
defaults write com.apple.finder AppleShowAllFiles YES
Do not display hidden files:
defaults write com.apple.finder AppleShowAllFiles -bool false
or
defaults write com.apple.finder AppleShowAllFiles NO
After completing the input, click the Enter key, then exit the terminal directly and restart Finder.
Restart Finder: First force quit Finder, and then restart Finder.
Related recommendations: macos system
The above is the detailed content of What is the method to display hidden files or not to display hidden files in macos system?. For more information, please follow other related articles on the PHP Chinese website!