Hide files and modify hosts files on Mac

Source: Internet
Author: User

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




Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.