Home  >  Article  >  Operation and Maintenance  >  What is the method to display hidden files or not to display hidden files in macos system?

What is the method to display hidden files or not to display hidden files in macos system?

王林
王林forward
2021-01-06 09:24:063298browse

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!

Statement:
This article is reproduced at:csdn.net. If there is any infringement, please contact admin@php.cn delete