There are three ways to display hidden files on Mac: command line, CMD + F, and software.
Command Line Method:
The command for displaying/hiding a Mac hidden file is as follows (note the spaces and make them case sensitive ):Command for displaying Mac hidden files: Defaults write com. Apple. Finder appleshowallfiles-bool true
Command for hiding Mac hidden files: Defaults write com. Apple. Finder appleshowallfiles-bool false
Or
Command for displaying hidden Mac files: Defaults write com. Apple. Finder appleshowallfiles Yes
Command for hiding Mac hidden files: Defaults write com. Apple. Finder appleshowallfiles No
After entering the key, click Enter to exit the terminal and restart the finder. Restart finder: Click the apple icon in the upper left corner of the window --> force exit --> finder --> restart.
CMD + F search
Use cmd + F to call up the search window and set the query condition to file visibility, as shown in:
Software: download the software invisiblix, install the software, drag the finder directory to the application, and you can set whether to display hidden files in the Application menu. :