Because the finder of the Apple system does not provide the show hidden file option on the UI, you must set the options in either of the following ways. 1. run the following command on the console to hide a file on the finder. Defaultswrite ~ /Library/Preferences/com. apple. fin...
Because the finder of the Apple system does not provide the show hidden file option on the UI, you must set the options in either of the following ways.
1. command line
Enter the following command in the console to display hidden files in the finder.
Defaults write ~ /Library/Preferences/com. apple. finder AppleShowAllFiles-bool true
The following command is used to hide the file owner status.
Defaults write ~ /Library/Preferences/com. apple. finder AppleShowAllFiles-bool false
2. directly edit attributes
Find the following directory in the finder:
Users/yourname/Library/Preferences
Find the com. apple. finder. plist file and open it with the property editor (xcode), as shown in
Find the AppleShowAllFiles item and change the attributes of the person next to it.