Show Hidden Files on Mac: The Ultimate Guide (2 Easy Methods)
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.

---
## 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.
Related Contents
NVM/Node Command Not Found in New macOS Terminals? A Two-Step Permanent Fix!
Duration: 00:00 | DP | 2025-12-04 09:35:00Boost Your WebStorm Productivity: Mimic Sublime Text's Cmd+D Multi-Selection Shortcut
Duration: 00:00 | DP | 2025-12-04 21:50:50One-Command Website Stability Check: The Ultimate Curl Latency Test Script for Zsh
Duration: 00:00 | DP | 2025-12-07 23:25:50How Can a Docker Container Access the Mac Host? The Ultimate Guide to Connecting to Nginx
Duration: 00:00 | DP | 2025-12-08 23:57:30Decoding `realpath: command not found` and Its Chained Errors on macOS
Duration: 00:00 | DP | 2025-11-19 12:45:02Linux Command-Line Mystery: Why `ll` Hides Files like `.idea` & The Ultimate `ls` vs. `ll` Showdown
Duration: 00:00 | DP | 2025-12-01 08:08:00Recommended
MySQL NULL vs. 0: Which Saves More Space? A Deep Dive with a Billion Rows
00:00 | 31In MySQL database design, should you use NULL or 0...
Upgrading to PHP 8.4? How to Fix the `session.sid_length` Deprecation Warning
00:00 | 11Encountering `session.sid_length` and `session.sid...
Stop Wasting Primary Keys: Optimizing PHP 'Delete then Insert' with Efficient Upserts in MySQL
00:00 | 9Are you still using the 'DELETE then INSERT' patte...
PHP PDO WHERE From Novice to Pro: Building a Powerful Dynamic Query Builder
00:00 | 0Dynamically building SQL WHERE clauses in PHP is a...