search
HomeOperation and MaintenanceMac OSHow to show and hide files in MAC OS X system

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

Command to hide hidden files on Mac:

defaults write com.apple.finder AppleShowAllFiles -bool false

or

Command to show hidden files on Mac:

defaults write com.apple.finder AppleShowAllFiles  YES

Command to hide Mac hidden files:

defaults write com.apple.finder AppleShowAllFiles  NO

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

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!

Statement
This article is reproduced at:segmentfault. If there is any infringement, please contact admin@php.cn delete
Understanding macOS: A Beginner's GuideUnderstanding macOS: A Beginner's GuideApr 22, 2025 am 12:11 AM

The basic operations of macOS include starting applications, managing files, and using system settings. 1. Start the application: Use the Terminal command "open-aSafari" to start the Safari browser. 2. Manage files: browse and organize files through Finder. 3. Use system settings: understand the functions of Dock and Launchpad to improve operational efficiency. Through these basic operations, you can quickly master how to use macOS.

macOS and Linux: Understanding the Key DifferencesmacOS and Linux: Understanding the Key DifferencesApr 21, 2025 am 12:09 AM

macOSandLinuxdifferinuserexperience,technicalaspects,community,andperformance.1)macOSoffersapolished,intuitiveinterfaceidealforaestheticsandeaseofuse.2)Linuxprovidescustomizationandcontrol,appealingtodevelopersandpowerusers.3)macOShasasupportive,inte

macOS vs. Linux: Kernel, Shell, and the CoremacOS vs. Linux: Kernel, Shell, and the CoreApr 20, 2025 am 12:10 AM

There are significant differences between macOS and Linux in terms of kernel, shell and system core: 1. macOS uses the XNU kernel, emphasizing user experience and stability; 2. Linux uses macro kernel, focusing on performance and customization; 3. macOS uses Zsh by default, and Linux has a variety of shell options; 4. macOS system core is highly integrated, while Linux is modular and suitable for customization.

The Most Recent macOS: System Requirements and CompatibilityThe Most Recent macOS: System Requirements and CompatibilityApr 19, 2025 am 12:01 AM

macOSSonoma,releasedin2023,requiresanAppleM1,M2,orIntelCorei5orlater,8GBRAM,35GBstorage,andmacOSBigSur11orlater.ItsupportsMacBook(2017 ),MacBookAir(2018 ),MacBookPro(2017 ),iMac(2017 ),iMacPro(2017),MacPro(2019 ),MacStudio(2022 ),andMacmini(2018 ).

macOS and Linux: Comparing Their Features and FunctionalitymacOS and Linux: Comparing Their Features and FunctionalityApr 18, 2025 am 12:19 AM

macOS is suitable for valuing user experience and hardware and software integration, while Linux is suitable for requiring high customizability and flexibility. macOS is simple and easy to use, seamlessly integrated with Apple products; Linux is open source, adapted to various environments, and has rich community resources.

macOS: Identifying the Most Recent ReleasemacOS: Identifying the Most Recent ReleaseApr 17, 2025 am 12:02 AM

Use the command line tool "sw_vers-productVersion" to identify the latest system version on macOS. 1. Open the terminal and enter the command to get the version number. 2. This command can be used in the script for version comparison and operation. 3. If you need optimization, you can use the "defaultsread" command to read the system file to obtain version information.

macOS Development: Building Native Apps with Swift & XcodemacOS Development: Building Native Apps with Swift & XcodeApr 16, 2025 am 12:01 AM

To develop macOS applications, you need to use Swift and Xcode. 1. Install Xcode and create a new project. 2. Use InterfaceBuilder to design the interface. 3. Write logical code in Swift file. 4. Utilize advanced features such as protocols and generic optimization code. 5. Use debugging tools to resolve common errors. 6. Optimize performance through asynchronous processing.

macOS: The User Experience and DesignmacOS: The User Experience and DesignApr 14, 2025 am 12:02 AM

The design philosophy of macOS is simplicity, user-centered and highly personalized. 1) The simple user interface allows users to quickly find the functions they need; 2) The user-centric design improves the interactive experience; 3) Personalized settings allow the system to be tailored to users; 4) Excellent performance and stability ensure smooth operation of the system; 5) Hidden functions such as shortcut commands and air-to-air playback improve work efficiency.

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

Powerful PHP integrated development environment

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.

DVWA

DVWA

Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software