Home > Operation and Maintenance > Mac OS > How to show and hide files in MAC OS X system

How to show and hide files in MAC OS X system

藏色散人
Release: 2020-05-11 17:16:36
forward
2890 people have browsed it

How to show and hide files in MAC OS X system

Showing and hiding files in MAC OS X system

Under the Apple Mac OS X operating system, there are many ways to set whether hidden files are displayed. The simplest is to enter commands in the Mac terminal.

Command to show hidden files on Mac:

defaults write com.apple.finder AppleShowAllFiles -bool true
Copy after login

Command to hide hidden files on Mac:

defaults write com.apple.finder AppleShowAllFiles -bool false
Copy after login

or

Command to show hidden files on Mac:

defaults write com.apple.finder AppleShowAllFiles  YES
Copy after login

Command to hide Mac hidden files:

defaults write com.apple.finder AppleShowAllFiles  NO
Copy after login

After typing, click the Enter key, exit the terminal, and restart Finder.

Restart Finder:

Click the Apple logo in the upper left corner of the window-->Force quit-->Finder-->Restart

But for familiar For Unix coders, just enter the following command directly.

$ ls -a
Copy after login

Related recommendations: "MacOS Tutorial"

The above is the detailed content of How to show and hide files in MAC OS X system. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:segmentfault.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template