Mac shows files starting with .

Mac shows files starting with "."

1. Display hidden files

  • Open a terminal. Enter the following code
defaults write com.apple.finder AppleShowAllFiles -bool true
  • After pressing enter, enter the following code
killAll Finder
  • Once completed, hidden files will appear in a lighter color

Please add image description

  • We can view information such as environment variables configured in bash_profile and zshrc files in hidden files, and make changes here

2. Hide hidden files that have been displayed

  • Open a terminal. Enter the following code
defaults write com.apple.finder AppleShowAllFiles -bool false
  • After pressing enter, enter the following code
killAll Finder
  • After completion, all hidden files will be hidden again

Please add image description

Guess you like

Origin blog.csdn.net/qq_56866000/article/details/133994937