Modify the hosts file content:
Go to the ETC folder, find the hosts file, copy the file, modify the content, delete the hosts file in etc, and then take the modified file offline.
The administrator password may be required. You can enter your login password and it will be OK.
There are two ways to display hidden files on Mac: Command Line and software.
Command Line:The command for displaying/hiding a Mac hidden file is as follows (note the spaces and make them case sensitive ):
Command for displaying hidden Mac 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