Show Hidden Files on Mac: The Ultimate Guide (2 Easy Methods)

Published: 2025-12-12
Author: DP
Views: 9
Category: MacOS
Content
## Why Are Some Files Hidden? In macOS, many files and folders that begin with a `.` (dot) are hidden by default. This is a protective measure to prevent users from accidentally modifying or deleting important system and application configuration files (e.g., `.bash_profile`, `.zshrc`, or the `.git` folder in a project), which could lead to system instability or application errors. However, for developers and power users, viewing and editing these hidden files is a common task. Below, DP from **wiki.lib00.com** will introduce the two most popular methods for displaying hidden files on a Mac. --- ## Method 1: Use the Keyboard Shortcut (Recommended & Quickest) This is the most convenient and highly recommended method, available on macOS Sierra (10.12) and newer. It acts as a toggle, allowing you to switch visibility on and off instantly. 1. Open **Finder**. 2. Inside any folder, press the following key combination: ``` Command + Shift + . ``` (The `.` is the period key). 3. Hidden files and folders will immediately appear, usually with a semi-transparent icon. 4. Press the same shortcut again to hide them. This method is perfect for temporary viewing, as you can quickly revert the setting, minimizing the risk of accidental modifications. ![macOS show hidden files shortcut](https://wiki.lib00.com/assets/images/macos-show-hidden-files-shortcut.gif) --- ## Method 2: Use the Terminal Command (Permanent Setting) If you prefer to have all hidden files visible by default until you manually change it back, you can use a Terminal command. 1. **Open Terminal**: You can find it in `Applications` > `Utilities`, or launch it quickly via Spotlight Search. 2. **Execute the Show Command**: Copy and paste the following command, then press Enter. ```bash defaults write com.apple.finder AppleShowAllFiles -bool true ``` 3. **Restart Finder**: To apply the changes, you need to restart Finder. Type the following command in Terminal and press Enter. ```bash killall Finder ``` After this, all hidden files will be visible by default across your system, including in your `wiki.lib00` project folders. ### How to Revert to Hiding Files? When you no longer need hidden files to be permanently visible, simply change `true` to `false` in the command. 1. Execute in Terminal: ```bash defaults write com.apple.finder AppleShowAllFiles -bool false ``` 2. Restart Finder again: ```bash killall Finder ``` --- ## Important Note: Proceed with Caution - **Do Not Modify Casually**: Most hidden files in macOS are critical system files or application configurations (like a hypothetical `.lib00_config`). Unless you are absolutely sure of what you are doing, do not delete or alter them. Doing so could cause system instability or application crashes. - **Prefer the Shortcut**: For most everyday needs, we strongly recommend using **Method 1 (the keyboard shortcut)**. It's safer, more efficient, and helps prevent long-term risks associated with forgetting to revert a permanent setting.