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
- 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